Skip to content

Commit 3b38f12

Browse files
committed
Use extension method syntax
1 parent 01e0b3f commit 3b38f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ object Semantic {
632632
val klass = meth.owner.companionClass.asClass
633633
val outerCls = klass.owner.lexicallyEnclosingClass.asClass
634634
val outer = resolveOuterSelect(outerCls, ref, 1, source)
635-
Semantic.instantiate(outer)(klass, klass.primaryConstructor, args, source)
635+
outer.instantiate(klass, klass.primaryConstructor, args, source)
636636
else
637637
withEnv(if isLocal then env else Env.empty) {
638638
eval(ddef.rhs, ref, cls, cacheResult = true) ++ argErrors

0 commit comments

Comments
 (0)