-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" labelEvery issue needs to have an "area" and "itype" label
Description
Compiler version
3.8
Minimized code
//> using scala 3.8.0
def g(op: Int ?=> Boolean) = op(using 42)
def f(x: Any) =
x match
//case s: String if g(s.length > 4) => println(s)
case s: String if g:
s.length > 4
=> s
case x => x.toString
@main def main =
println:
f("hello, world")Output
8 | s.length > 4
| ^
| indented definitions expected, identifier s foundExpectation
Scala continues its tradition of clean syntax excellence.
Metadata
Metadata
Assignees
Labels
itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" labelEvery issue needs to have an "area" and "itype" label