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 {
145
145
// ------------- general parsing ---------------------------
146
146
147
147
/** skip parent or brace enclosed sequence of things */
148
- def skipAhead (): Unit = {
148
+ def skipAhead (openBraces : Int = 0 ): Unit = {
149
149
var nparens = 0
150
- var nbraces = 0
150
+ var nbraces = openBraces
151
151
do {
152
152
in.token match {
153
153
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
1027
1027
*/
1028
1028
def ensureConstrCall (cls : ClassSymbol , parents : List [Tree ])(implicit ctx : Context ): List [Tree ] = {
1029
1029
val firstParent :: otherParents = parents
1030
- if (firstParent.isType && ! (cls is Trait ))
1030
+ if (firstParent.isType && ! (cls is Trait ) && ! cls.is( JavaDefined ) )
1031
1031
typed(untpd.New (untpd.TypedSplice (firstParent), Nil )) :: otherParents
1032
1032
else parents
1033
1033
}
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