-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Simplify tests with custom args in CompilationTests #18376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Xfatal-warnings | ||
|
||
class Foo { | ||
|
||
val s: String = ??? | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Ysafe-init | ||
|
||
class C1: | ||
sealed abstract class Name { | ||
type ThisName <: Name | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Ytest-pickler -Xprint-types | ||
|
||
class B: | ||
def g: String | Null = ??? | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Xfatal-warnings | ||
|
||
import scala.language.unsafeNulls | ||
|
||
def test1 = | ||
|
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.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Yno-experimental | ||
|
||
import annotation.experimental | ||
|
||
@experimental trait Exp | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// scalac: -Xfatal-warnings -deprecation | ||
|
||
@deprecated trait Exp | ||
@deprecated val exp = 1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Xfatal-warnings | ||
|
||
import scala.reflect.ClassTag | ||
|
||
object IsInstanceOfClassTag { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Xfatal-warnings | ||
|
||
import scala.reflect.TypeTest | ||
|
||
object IsInstanceOfClassTag { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -language:experimental.captureChecking -Xfatal-warnings | ||
|
||
class C | ||
type Cap = C^ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// scalac: -Xfatal-warnings | ||
|
||
import scala.language.`future-migration` | ||
import scala.reflect.ClassTag | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a zealot (much), but
-Werror
is more sleek and modern.My missed opportunity today on a scala 2 PR, for which I am overcompensating:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the size of this PR I prefer to keep all flags identical. We can refactor the flags after this PR.