File tree 4 files changed +10
-10
lines changed 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
5
5
|
6
6
| 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
5
5
|---------------------------------------------------------------------------------------------------------------------
6
6
| Explanation (enabled by `-explain`)
7
7
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Original file line number Diff line number Diff line change 1
1
//> using options -explain
2
2
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