File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ -- [E008] Not Found Error: tests/neg/leading-infix-miss.scala:3:2 ------------------------------------------------------
2+ 2 | val x = false
3+ 3 | ! true // error // error
4+ | ^
5+ | value ! is not a member of Boolean.
6+ | Note that `!` is treated as an infix operator in Scala 3.
7+ | If you do not want that, insert a `;` or empty line in front
8+ | or drop any spaces behind the operator.
9+ -- [E007] Type Mismatch Error: tests/neg/leading-infix-miss.scala:3:8 --------------------------------------------------
10+ 3 | ! true // error // error
11+ | ^
12+ | Found: Unit
13+ | Required: Boolean
Original file line number Diff line number Diff line change 1+ def test : Boolean =
2+ val x = false
3+ ! true // error // error
You can’t perform that action at this time.
0 commit comments