File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -837,6 +837,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
837837 final def splitAtSuper (constrStats : List [Tree ])(implicit ctx : Context ): (List [Tree ], List [Tree ]) =
838838 constrStats.toList match {
839839 case (sc : Apply ) :: rest if sc.symbol.isConstructor => (sc :: Nil , rest)
840+ case (block @ Block (_, sc : Apply )) :: rest if sc.symbol.isConstructor => (block :: Nil , rest)
840841 case stats => (Nil , stats)
841842 }
842843
Original file line number Diff line number Diff line change 1+ class FrameworkTest (val cls : Class [_], val format : Int = 1 , val expected : String )
2+
3+ class FixtureFrameworkSuite
4+ object FixtureFrameworkSuite extends FrameworkTest (
5+ classOf [FixtureFrameworkSuite ],
6+ expected = " test"
7+ )
8+
9+ @ main
10+ def Test = FixtureFrameworkSuite
You can’t perform that action at this time.
0 commit comments