diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-21 23:44:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-21 23:44:32 +0100 |
commit | e38813ac1362a1d528dfa1ee79f0f8b0d6f7ccb8 (patch) | |
tree | d8c2e1a9b2c1b86373f1ae125af617578ab8696f /src/dotty/tools/dotc/typer/Typer.scala | |
parent | ed6d9327c5efc70db59d5fd90612e4a5a58cff8c (diff) | |
download | dotty-e38813ac1362a1d528dfa1ee79f0f8b0d6f7ccb8.tar.gz dotty-e38813ac1362a1d528dfa1ee79f0f8b0d6f7ccb8.tar.bz2 dotty-e38813ac1362a1d528dfa1ee79f0f8b0d6f7ccb8.zip |
Consolidation of TyperState and Constraint
Removing undetVars and instTypes as separately assignable fields. This is better for maintaining invariants by design.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 9780e8d2e..4242b5c99 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1100,10 +1100,7 @@ class Typer extends Namer with Applications with Implicits { case poly: PolyType => if (pt.isInstanceOf[PolyProto]) tree else { - val tvars = ctx.typerState.withCheckingDisabled { - val tracked = ctx.track(poly) - ctx.newTypeVars(tracked, tree) - } + val (_, tvars) = ctx.track(poly, tree) adaptInterpolated(tree appliedToTypes tvars, pt) } case wtp => |