Skip to content

Commit b76bcc6

Browse files
authored
Merge pull request #2479 from dotty-staging/fix-#1679
Fix #1679: Regression test for compiler crash
2 parents 2b34272 + b0422f2 commit b76bcc6

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)