Skip to content

Commit 6c31e64

Browse files
committed
Test case for #5445
1 parent 6fa2a3e commit 6c31e64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/i5445.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object Test {
2+
3+
trait A { def polymorphic[x]: Int }
4+
val a = new A { val polymorphic = Unit } // error: object creation impossible
5+
6+
}

0 commit comments

Comments
 (0)