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/typer/Applications.scala | |
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/typer/Applications.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Applications.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Applications.scala b/compiler/src/dotty/tools/dotc/typer/Applications.scala index 236bc051e..cd7c7fd66 100644 --- a/compiler/src/dotty/tools/dotc/typer/Applications.scala +++ b/compiler/src/dotty/tools/dotc/typer/Applications.scala @@ -1059,7 +1059,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic => if (tp1.isVarArgsMethod && tp2.isVarArgsMethod) tp1.paramInfos map repeatedToSingle else tp1.paramInfos isApplicable(alt2, formals1, WildcardType) || - tp1.paramInfos.isEmpty && tp2.isInstanceOf[MethodOrPoly] + tp1.paramInfos.isEmpty && tp2.isInstanceOf[LambdaType] case tp1: PolyType => // (2) val tparams = ctx.newTypeParams(alt1.symbol, tp1.paramNames, EmptyFlags, tp1.instantiateBounds) isAsSpecific(alt1, tp1.instantiate(tparams map (_.typeRef)), alt2, tp2) |