diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-13 20:31:28 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-02-18 23:35:34 +0100 |
commit | e5a6a9e7c363acc4ad7d9d9fe25e1ffa533e5d90 (patch) | |
tree | fec1bac3256bb8baacf150678b96405819e4b115 /compiler/src/dotty/tools/dotc/typer/Namer.scala | |
parent | 8fe124f1517fba9cb833c82e52ba6f6ba01da735 (diff) | |
download | dotty-e5a6a9e7c363acc4ad7d9d9fe25e1ffa533e5d90.tar.gz dotty-e5a6a9e7c363acc4ad7d9d9fe25e1ffa533e5d90.tar.bz2 dotty-e5a6a9e7c363acc4ad7d9d9fe25e1ffa533e5d90.zip |
ImportInfo: Do not capture Context
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Namer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Namer.scala b/compiler/src/dotty/tools/dotc/typer/Namer.scala index 3860ba225..9f35a07ab 100644 --- a/compiler/src/dotty/tools/dotc/typer/Namer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Namer.scala @@ -378,7 +378,7 @@ class Namer { typer: Typer => case ref: RefTree => Some(ref.name.asTermName) case _ => None } - ctx.fresh.setImportInfo(new ImportInfo(sym, imp.selectors, impNameOpt)) + ctx.fresh.setImportInfo(new ImportInfo(implicit ctx => sym, imp.selectors, impNameOpt)) } /** A new context for the interior of a class */ |