-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
//> using options -source future -feature -Xfatal-warnings | ||
|
||
package adhoc | ||
class B extends A // error: adhoc-extension (under -strict -feature -Xfatal-warnings) | ||
class C extends A // error | ||
class B extends A // warn: adhoc-extension (under -strict -feature -Xfatal-warnings) | ||
class C extends A // warn | ||
|
||
object O { | ||
val a = new A {} // error | ||
object E extends A // error | ||
} | ||
val a = new A {} // warn | ||
object E extends A // warn | ||
} | ||
// nopos-error: No warnings can be incurred under -Werror. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Error: tests/neg/i11225b.scala:6:26 --------------------------------------------------------------------------------- | ||
6 | private var cached: A = _ // error | ||
| ^ | ||
| `= _` has been deprecated; use `= uninitialized` instead. | ||
| `uninitialized` can be imported with `scala.compiletime.uninitialized`. | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.