diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala index 5ac401fe7..2507d277b 100644 --- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala +++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala @@ -125,11 +125,7 @@ class ClassfileParser( instanceScope.lookup(nme.CONSTRUCTOR) == NoSymbol && !(sflags is Flags.Interface) if (needsConstructor) - instanceScope enter - cctx.newSymbol( - classRoot.symbol, - nme.CONSTRUCTOR, Flags.EmptyFlags, - MethodType(Nil, Nil)(_ => classRoot.typeConstructor)) + instanceScope enter cctx.newDefaultConstructor(classRoot.symbol.asClass) classInfo = parseAttributes(classRoot.symbol, classInfo) assignClassFields(classRoot, classInfo, classRoot.typeConstructor) |