-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add init test #20356
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
Add init test #20356
Conversation
tests/warn/TypeCast.scala
Outdated
@@ -4,7 +4,7 @@ object A { | |||
} | |||
object B { | |||
val f: Int = g() | |||
def g(): Int = f // error | |||
def g(): Int = f // warn |
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.
Should this file be in tests/init-global/warn
instead of just tests/warn
?
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.
It turns out that we already have it here: https://github.com/scala/scala3/blob/main/tests/init-global/warn/TypeCast.scala
So we can simply remove the duplicate file.
val names = Set("bla") | ||
val help = "bla" | ||
|
||
val opts = List(OptMinSuccess) // warn |
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.
I'm getting Warnings found on incorrect row numbers when compiling tests/init-global/warn/ScalaCheck.scala
when I run the test. The warning is on line 16, then has a trace that ends on 21.
cab415f
to
67c68b8
Compare
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.
LGTM
Add Color.scala to black list The test added in #20356 seems to break `test_scala2_library_tasty`, due to a [problem](scala/bug#13009) in Scala 2 library. [test_scala2_library_tasty]
Add init test