File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- -- [E042] Type Error: tests/neg/i16601.scala:1:27 ----------------------------------------------------------------------
2- 1 |@main def Test: Unit = new concurrent.ExecutionContext // error
3- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4- | ExecutionContext is a trait; it cannot be instantiated
1+ -- [E042] Type Error: tests/neg/i16601.scala:1:26 ----------------------------------------------------------------------
2+ 1 |@main def Test: Any = new concurrent.ExecutionContext // error
3+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+ | ExecutionContext is a trait; it cannot be instantiated
55 |
66 | longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 1- @ main def Test : Unit = new concurrent.ExecutionContext // error
1+ @ main def Test : Any = new concurrent.ExecutionContext // error
Original file line number Diff line number Diff line change 1- -- [E042] Type Error: tests/neg/i16601a.scala:3:27 ---------------------------------------------------------------------
2- 3 |@main def Test: Unit = new concurrent.ExecutionContext // error
3- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4- | ExecutionContext is a trait; it cannot be instantiated
1+ -- [E042] Type Error: tests/neg/i16601a.scala:3:26 ---------------------------------------------------------------------
2+ 3 |@main def Test: Any = new concurrent.ExecutionContext // error
3+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+ | ExecutionContext is a trait; it cannot be instantiated
55 |---------------------------------------------------------------------------------------------------------------------
66 | Explanation (enabled by `-explain`)
77 |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Original file line number Diff line number Diff line change 11//> using options -explain
22
3- @ main def Test : Unit = new concurrent.ExecutionContext // error
3+ @ main def Test : Any = new concurrent.ExecutionContext // error
You can’t perform that action at this time.
0 commit comments