We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa2a3e commit 6c31e64Copy full SHA for 6c31e64
tests/neg/i5445.scala
@@ -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