We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f2d30 commit 6f3b64dCopy full SHA for 6f3b64d
compiler/src/dotty/tools/dotc/transform/init/Util.scala
@@ -62,6 +62,10 @@ object Util:
62
case ref: RefTree if ref.symbol.is(Flags.Method) =>
63
Some((ref, Nil))
64
65
+ case ref: RefTree if ref.tpe.widenSingleton.isInstanceOf[MethodicType] =>
66
+ // for polymorphic method with no `apply` symbol; see tests/init/pos/interleaving-overload.scala
67
+ Some((ref, Nil))
68
+
69
case _ => None
70
71
object NewExpr:
0 commit comments