File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
210210 yield constr.owner -> transformConstructor(p)
211211 ).toMap
212212
213- def superCallOpt (baseCls : Symbol ): List [Tree ] =
214- superCallsAndArgs.get(baseCls) match
213+ def superCallOpt (baseCls : Symbol ): List [Tree ] = superCallsAndArgs.get(baseCls) match
215214 case Some ((call, _, _)) =>
216215 if (defn.NotRuntimeClasses .contains(baseCls) || baseCls.isAllOf(NoInitsTrait )) Nil
217216 else call :: Nil
Original file line number Diff line number Diff line change 1- trait A (a : Any , b : Int ) {
2- // var x = 0
3- }
4- // class A(a: String, b: Int) {
5- //
6- // } //OK!
7- object B extends A (b = 0 , a = String (" " ))
8- // object B extends A(a = String(""), b = 0) //OK!
1+ trait A (a : Any , b : Int )
2+ trait B (a : Any , b : Int ):
3+ var x = 0
4+ class C (a : String , b : Int )
5+
6+ object O extends
7+ C (b = 0 , a = String (" " )),
8+ A (b = 0 , a = String (" " )),
9+ B (b = 0 , a = String (" " ))
You can’t perform that action at this time.
0 commit comments