Skip to content

Commit b4258e2

Browse files
committed
Add test case
1 parent ea23a19 commit b4258e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/constrParams.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
class C {
4+
type INT = Int
5+
class I
6+
def this(x: INT) = this() // error: illegal access
7+
def this(x: I) = this() // error: illegal access
8+
}

0 commit comments

Comments
 (0)