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 ddad2eb commit 526670dCopy full SHA for 526670d
tests/neg/i8338.scala
@@ -0,0 +1,8 @@
1
+object test {
2
+ trait B {
3
+ type X; def mkX(i: Int): B#X
4
+ }
5
+ val b: B = new B {
6
+ type X = Int; def mkX(i: Int): X = i // error
7
8
+}
0 commit comments