diff options
author | Martin Odersky <odersky@gmail.com> | 2015-09-21 22:14:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-01 19:33:25 +0200 |
commit | 3604a738654effc20be1d31b0e7af3d0847114b4 (patch) | |
tree | 1535a9ee7d2bb23fab69bb3ec6730cc66c32131a /test/test/DeSugarTest.scala | |
parent | fe714ed2b6aaca41f1e6681b217022b301f3049d (diff) | |
download | dotty-3604a738654effc20be1d31b0e7af3d0847114b4.tar.gz dotty-3604a738654effc20be1d31b0e7af3d0847114b4.tar.bz2 dotty-3604a738654effc20be1d31b0e7af3d0847114b4.zip |
Replace withMode by addMode
withMode sets the whole mode, nit an individual bits. This was used
wrongly in several places. Make this less of a trap by renaming
withMode -> withModeBits.
Diffstat (limited to 'test/test/DeSugarTest.scala')
-rw-r--r-- | test/test/DeSugarTest.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/DeSugarTest.scala b/test/test/DeSugarTest.scala index 2c74abae7..44360d657 100644 --- a/test/test/DeSugarTest.scala +++ b/test/test/DeSugarTest.scala @@ -35,7 +35,7 @@ class DeSugarTest extends ParserTest { def transform(trees: List[Tree], mode: Mode)(implicit ctx: Context): List[Tree] = withMode(mode) { transform(trees) } override def transform(tree: Tree)(implicit ctx: Context): Tree = { - val tree1 = desugar(tree)(ctx.withMode(curMode)) + val tree1 = desugar(tree)(ctx.withModeBits(curMode)) tree1 match { case TypedSplice(t) => tree1 |