Skip to content

Commit e610028

Browse files
szymon-rdKordyjan
authored andcommitted
Move tests
1 parent 1ffde13 commit e610028

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

tests/neg-custom-args/fatal-warnings/i15503i.scala

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,26 @@ package foo.test.i16822:
142142
val x = ExampleEnum.List // OK
143143
println(x) // OK
144144
}
145+
146+
package foo.test.i16877:
147+
import scala.collection.immutable.HashMap // OK
148+
import scala.annotation.StaticAnnotation // OK
149+
150+
class ExampleAnnotation(val a: Object) extends StaticAnnotation // OK
151+
152+
@ExampleAnnotation(new HashMap()) // OK
153+
class Test //OK
154+
155+
package foo.test.i16926:
156+
def hello(): Unit =
157+
for {
158+
i <- (0 to 10).toList
159+
(a, b) = "hello" -> "world" // OK
160+
} yield println(s"$a $b")
161+
162+
package foo.test.i16925:
163+
def hello =
164+
for {
165+
i <- 1 to 2 if true
166+
_ = println(i) // OK
167+
} yield ()

tests/neg-custom-args/fatal-warnings/i16925.scala

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/neg-custom-args/fatal-warnings/i16926.scala

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)