File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ object JavaParsers {
145145 // ------------- general parsing ---------------------------
146146
147147 /** skip parent or brace enclosed sequence of things */
148- def skipAhead (): Unit = {
148+ def skipAhead (openBraces : Int = 0 ): Unit = {
149149 var nparens = 0
150- var nbraces = 0
150+ var nbraces = openBraces
151151 do {
152152 in.token match {
153153 case LPAREN =>
Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
10271027 */
10281028 def ensureConstrCall (cls : ClassSymbol , parents : List [Tree ])(implicit ctx : Context ): List [Tree ] = {
10291029 val firstParent :: otherParents = parents
1030- if (firstParent.isType && ! (cls is Trait ))
1030+ if (firstParent.isType && ! (cls is Trait ) && ! cls.is( JavaDefined ) )
10311031 typed(untpd.New (untpd.TypedSplice (firstParent), Nil )) :: otherParents
10321032 else parents
10331033 }
Original file line number Diff line number Diff line change 1+ class Foo {
2+ Foo (int i ) {
3+ }
4+ }
5+
6+
7+ class Bar extends Foo {
8+ Bar () {
9+ super (10 );
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments