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 f5313ae commit cb73f0bCopy full SHA for cb73f0b
tests/init-global/pos/i17997-2.scala
@@ -0,0 +1,23 @@
1
+abstract class FunSuite:
2
+ def foo(): Unit = println("FunSuite")
3
+
4
+ foo()
5
6
+trait MySelfType
7
8
+trait MyTrait extends FunSuite { this: MySelfType =>
9
+}
10
11
+abstract class MyAbstractClass extends FunSuite { this: MySelfType & MyTrait =>
12
13
+ override def foo() = {
14
+ println("MyAbstractClass")
15
+ super.foo()
16
+ }
17
18
19
+final class MyFinalClass extends MyAbstractClass with MyTrait with MySelfType:
20
+ val n: Int = 100
21
22
+object Main:
23
+ (new MyFinalClass).foo()
0 commit comments