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
t11921-alias.scala:18: warning: reference to TT is ambiguous;
2
+
it is both defined in the enclosing object O and available in the enclosing class D as type TT (defined in class C)
3
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
4
+
To continue using the symbol from the superclass, write `this.TT`.
5
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
6
+
def n(x: TT) = x // ambiguous
7
+
^
8
+
t11921-alias.scala:38: warning: reference to c is ambiguous;
9
+
it is both defined in the enclosing class B and available in the enclosing anonymous class as value c (defined in class A)
10
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
11
+
To continue using the symbol from the superclass, write `this.c`.
12
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
13
+
def n = c // ambiguous
14
+
^
15
+
t11921-alias.scala:57: warning: reference to name is ambiguous;
16
+
it is both defined in the enclosing method m and available in the enclosing anonymous class as value name (defined in class C)
17
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
18
+
To continue using the symbol from the superclass, write `this.name`.
19
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
20
+
println(name)
21
+
^
22
+
t11921-alias.scala:67: warning: reference to name is ambiguous;
23
+
it is both defined in the enclosing method m and available in the enclosing anonymous class as value name (defined in class A, inherited through parent class C)
24
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
25
+
To continue using the symbol from the superclass, write `this.name`.
26
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
27
+
println(name)
28
+
^
29
+
error: No warnings can be incurred under -Xfatal-warnings.
t11921b.scala:11: warning: reference to x is ambiguous;
2
+
it is both defined in the enclosing object Test and available in the enclosing class D as value x (defined in class C)
3
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
4
+
To continue using the symbol from the superclass, write `this.x`.
5
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
6
+
println(x) // error
7
+
^
8
+
t11921b.scala:15: warning: reference to x is ambiguous;
9
+
it is both defined in the enclosing object Test and available in the enclosing anonymous class as value x (defined in class C)
10
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
11
+
To continue using the symbol from the superclass, write `this.x`.
12
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
13
+
println(x) // error
14
+
^
15
+
t11921b.scala:26: warning: reference to y is ambiguous;
16
+
it is both defined in the enclosing method c and available in the enclosing anonymous class as value y (defined in class D)
17
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
18
+
To continue using the symbol from the superclass, write `this.y`.
19
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
20
+
println(y) // error
21
+
^
22
+
t11921b.scala:38: warning: reference to y is ambiguous;
23
+
it is both defined in the enclosing method c and available in the enclosing class E as value y (defined in class D)
24
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
25
+
To continue using the symbol from the superclass, write `this.y`.
26
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
27
+
println(y) // error
28
+
^
29
+
t11921b.scala:65: warning: reference to global is ambiguous;
30
+
it is both defined in the enclosing package <empty> and available in the enclosing object D as value global (defined in class C)
31
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
32
+
To continue using the symbol from the superclass, write `this.global`.
33
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
34
+
println(global) // error
35
+
^
36
+
t11921b.scala:75: warning: reference to x is ambiguous;
37
+
it is both defined in the enclosing object Uhu and available in the enclosing class C as value x (defined in class A, inherited through parent class B)
38
+
Since Scala 3, symbols inherited from a superclass no longer shadow symbols defined in an outer scope.
39
+
To continue using the symbol from the superclass, write `this.x`.
40
+
Or use `-Wconf:msg=legacy-binding:s` to silence this warning.
41
+
def t = x // ambiguous, message mentions parent B
42
+
^
43
+
error: No warnings can be incurred under -Xfatal-warnings.
0 commit comments