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.
2 parents dd340af + 3ec7114 commit d35392dCopy full SHA for d35392d
tests/neg/i5278.scala
@@ -0,0 +1,11 @@
1
+trait T { self: {type M = Int} =>
2
+ type T = self.M
3
+ def lift(x: Int): T = x
4
+ }
5
+
6
+ class Test {
7
+ val t = new T {
8
+ type M = Int
9
10
+ t.lift(1): t.T // error
11
0 commit comments