aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/VCInlineMethods.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/transform/VCInlineMethods.scala')
-rw-r--r--src/dotty/tools/dotc/transform/VCInlineMethods.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/VCInlineMethods.scala b/src/dotty/tools/dotc/transform/VCInlineMethods.scala
index 1c2b015a1..ddd414417 100644
--- a/src/dotty/tools/dotc/transform/VCInlineMethods.scala
+++ b/src/dotty/tools/dotc/transform/VCInlineMethods.scala
@@ -90,7 +90,7 @@ class VCInlineMethods extends MiniPhaseTransform with IdentityDenotTransformer {
tree // The rewiring will be handled by a fully-applied parent node
case _ =>
if (isMethodWithExtension(tree.symbol))
- rewire(tree)
+ rewire(tree).ensureConforms(tree.tpe)
else
tree
}