Skip to content

Commit 126aa19

Browse files
committed
Fix calling polymorphic functions
tests/run/polymorphic-functions.scala
1 parent 7f3bebd commit 126aa19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ class Objects {
314314
Result(Bottom, Errors.empty)
315315

316316
case TypeAbs(tp) =>
317-
if meth.isEffectivelyFinal then
317+
if meth.exists && meth.isEffectivelyFinal then
318318
if meth.hasSource then
319319
val isLocal = meth.owner.isClass
320320
val ddef = meth.defTree.asInstanceOf[DefDef]

0 commit comments

Comments
 (0)