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 99b9dbd commit 14d506aCopy full SHA for 14d506a
tests/pos/i503.scala
@@ -3,7 +3,11 @@ class HelloWorld {
3
object TypeBool;
4
5
class Fct {
6
- def g(x : Int) = TypeBool // breaks.
+ def g(x : Int) = TypeBool
7
+ }
8
+
9
+ trait Fct2 {
10
11
}
12
13
tests/pos/superacc.scala
@@ -0,0 +1,17 @@
1
+// scenario one: supercalls in traits
2
+abstract class C {
+ def foo: Int = 2
+ def baz: Int = 2
+}
+trait T extends C {
+ override def foo = super.foo + 1
+// scenario 2: supercalls in nested classes
+class D extends C with T {
14
+ class I {
15
+ val x= D.super.baz
16
17
0 commit comments