Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit a69ffb0

Browse files
committed
Fix compatibility with new lazy val encoding (scala/scala#5141, scala/scala#5294)
1 parent 3af1248 commit a69ffb0

File tree

2 files changed

+548
-5
lines changed

2 files changed

+548
-5
lines changed

plugin/src/main/scala/scala/tools/selectivecps/SelectiveANFTransform.scala renamed to plugin/src/main/scala-2.11/scala/tools/selectivecps/SelectiveANFTransform.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
package scala.tools.selectivecps
44

5-
import scala.tools.nsc.transform._
6-
import scala.tools.nsc.symtab._
75
import scala.tools.nsc.plugins._
6+
import scala.tools.nsc.symtab._
7+
import scala.tools.nsc.transform._
88

99
/**
1010
* In methods marked @cps, explicitly name results of calls to other @cps methods
@@ -13,9 +13,8 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
1313
TypingTransformers with CPSUtils {
1414
// inherits abstract value `global` and class `Phase` from Transform
1515

16-
import global._ // the global environment
17-
import definitions._ // standard classes and methods
18-
import typer.atOwner // methods to type trees
16+
import global._
17+
import definitions._ // methods to type trees
1918

2019
override def description = "ANF pre-transform for @cps"
2120

0 commit comments

Comments
 (0)