Skip to content

Commit b0422f2

Browse files
committed
Fix #1679: Regression test for compiler crash
1 parent 8a9aedc commit b0422f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/neg/i1679.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class A[T]
2+
object o {
3+
// Testing compiler crash, this test should be modified when named type argument are completely implemented
4+
val x: A[T=Int, T=Int] = ??? // error: ']' expected, but '=' found
5+
}

0 commit comments

Comments
 (0)