Skip to content

Commit 8225502

Browse files
authored
Merge pull request #10007 from griggt/close-fuzzballs
Add regression tests and close out already fixed fuzzball issues
2 parents bd64de7 + b6496eb commit 8225502

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

tests/fuzzy/i9292.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trait I0[-I1] {
2+
def [@specialized(List[I2], i3
3+
val
4+
def i3(i4: Int }

tests/neg/i9330.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
val x = {
2+
() == ""
3+
implicit def foo[A: A] // error // error // error
4+
}

tests/neg/i9331.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package object Foo {
2+
(1: Any) match {
3+
case Foo => 1 // error
4+
}
5+
}

tests/neg/i9332.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class A {
2+
enum B extends java.lang.Enum[B] { // error: enum extending java.lang.Enum must be declared in a static scope
3+
case C
4+
}
5+
}
File renamed without changes.

0 commit comments

Comments
 (0)