You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abstract class ScalaTreeTransformer[T, C <: whitebox.Context](val c: C) {
import c.universe._
...
}
class LuaTransformer[C <: whitebox.Context](c: C) extends ScalaTreeTransformerLuaNode,C {
import super.c.universe._ // <-- this line produces a compile error
...
}
The use of a super clause to select the 'c' identifier is a 'Stable Identifier' as defined in the grammar and in an import statement this should be allowable. I don't see why this should be an error. The message given:
Error(x,x) "Identifier given but 'super' found."
The text was updated successfully, but these errors were encountered:
Given the following code:
abstract class ScalaTreeTransformer[T, C <: whitebox.Context](val c: C) {
import c.universe._
...
}
class LuaTransformer[C <: whitebox.Context](c: C) extends ScalaTreeTransformerLuaNode,C {
import super.c.universe._ // <-- this line produces a compile error
...
}
The use of a super clause to select the 'c' identifier is a 'Stable Identifier' as defined in the grammar and in an import statement this should be allowable. I don't see why this should be an error. The message given:
Error(x,x) "Identifier given but 'super' found."
The text was updated successfully, but these errors were encountered: