You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/files/neg/t11921b.check
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,13 @@ Such references are ambiguous in Scala 3. To continue using the inherited symbol
29
29
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
30
30
println(y) // error
31
31
^
32
+
t11921b.scala:65: warning: reference to global is ambiguous;
33
+
it is both defined in the enclosing package <empty> and inherited in the enclosing object D as value global (defined in class C)
34
+
In Scala 2, symbols inherited from a superclass shadow symbols defined in an outer scope.
35
+
Such references are ambiguous in Scala 3. To continue using the inherited symbol, write `this.global`.
36
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
37
+
println(global) // error
38
+
^
32
39
t11921b.scala:75: warning: reference to x is ambiguous;
33
40
it is both defined in the enclosing object Uhu and inherited in the enclosing class C as value x (defined in class A, inherited through parent class B)
34
41
In Scala 2, symbols inherited from a superclass shadow symbols defined in an outer scope.
@@ -50,5 +57,5 @@ Such references are ambiguous in Scala 3. To continue using the inherited symbol
50
57
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
0 commit comments