diff options
author | odersky <odersky@gmail.com> | 2017-02-21 17:10:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 17:10:14 +0100 |
commit | 355232690d96e458764159a66f3fed0135c059a3 (patch) | |
tree | c6183190768ead9ddaa5e5103dad7f5007b9c182 /compiler/src/dotty/tools/dotc/typer/Typer.scala | |
parent | 6189ffe415c8905cc5802f0505d837b4142999db (diff) | |
parent | 7c4a9ec39ad3c6302767442de34f53c28cc3bebb (diff) | |
download | dotty-355232690d96e458764159a66f3fed0135c059a3.tar.gz dotty-355232690d96e458764159a66f3fed0135c059a3.tar.bz2 dotty-355232690d96e458764159a66f3fed0135c059a3.zip |
Merge pull request #1974 from dotty-staging/fix/ctx-capture
Avoid accidental captures of Context
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 |
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 26f7bc65b..06200d3e4 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -145,7 +145,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit */ def bindingString(prec: Int, whereFound: Context, qualifier: String = "") = if (prec == wildImport || prec == namedImport) { - ex"""imported$qualifier by ${hl"${whereFound.importInfo.toString}"}""" + ex"""imported$qualifier by ${hl"${whereFound.importInfo}"}""" } else ex"""defined$qualifier in ${hl"${whereFound.owner.toString}"}""" |