diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-17 15:12:02 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-06 13:15:28 +0200 |
commit | 4bfc17365518e6014895ae1aaa51517648b46df2 (patch) | |
tree | 16e7bc39228a4dbb8156fa5a483f0879ede60097 /compiler/src/dotty/tools/dotc/transform | |
parent | 5fe6f54de36224974bdd3a9169f899f6df25971e (diff) | |
download | dotty-4bfc17365518e6014895ae1aaa51517648b46df2.tar.gz dotty-4bfc17365518e6014895ae1aaa51517648b46df2.tar.bz2 dotty-4bfc17365518e6014895ae1aaa51517648b46df2.zip |
Eliminate MethodOrPoly
Replace with LambdaType
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/VCInlineMethods.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/VCInlineMethods.scala b/compiler/src/dotty/tools/dotc/transform/VCInlineMethods.scala index ddd414417..ab24e1720 100644 --- a/compiler/src/dotty/tools/dotc/transform/VCInlineMethods.scala +++ b/compiler/src/dotty/tools/dotc/transform/VCInlineMethods.scala @@ -86,7 +86,7 @@ class VCInlineMethods extends MiniPhaseTransform with IdentityDenotTransformer { * by a call to the corresponding extension method, otherwise return it as is. */ private def rewireIfNeeded(tree: Tree)(implicit ctx: Context) = tree.tpe.widen match { - case tp: MethodOrPoly => + case tp: LambdaType => tree // The rewiring will be handled by a fully-applied parent node case _ => if (isMethodWithExtension(tree.symbol)) |