aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-25 19:13:58 +0100
committerGitHub <noreply@github.com>2017-02-25 19:13:58 +0100
commit8467e5551ec7733c876c6764db1601aedc9767b9 (patch)
tree40bfc3ad04c3bf42696c27a34a35bad686940af6 /compiler/src/dotty/tools/dotc/typer/Typer.scala
parent8a0a4fbdb7fc118a44cbc3dbd85095093717e7b4 (diff)
parentd8c7a7ae0e981a2abd9e973617ef575270dd30a5 (diff)
downloaddotty-8467e5551ec7733c876c6764db1601aedc9767b9.tar.gz
dotty-8467e5551ec7733c876c6764db1601aedc9767b9.tar.bz2
dotty-8467e5551ec7733c876c6764db1601aedc9767b9.zip
Merge pull request #1993 from dotty-staging/add-lazy-implicits
Treat implicit by-name arguments as lazy values
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/typer/Typer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala
index 06200d3e4..33e320ce5 100644
--- a/compiler/src/dotty/tools/dotc/typer/Typer.scala
+++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1890,7 +1890,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
def implicitArgError(msg: String => String) =
errors += (() => msg(em"parameter $pname of $methodStr"))
if (errors.nonEmpty) EmptyTree
- else inferImplicitArg(formal.widenExpr, implicitArgError, tree.pos.endPos)
+ else inferImplicitArg(formal, implicitArgError, tree.pos.endPos)
}
if (errors.nonEmpty) {
// If there are several arguments, some arguments might already