Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 243 Bytes
import scala.reflect.runtime.universe._
class A { lazy val x = 1 }
object Test {
def main(args: Array[String]): Unit = {
val vars = typeOf[A].members.toList filter (x => x.isTerm && x.asTerm.isVar)
assert(vars.isEmpty, vars)
}
}
Jump to Line
Something went wrong with that request. Please try again.