Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0-RC2, Scala 2.11.0-M1
    • Fix Version/s: Scala 2.10.0
    • Component/s: Reflection

      Description

      It has to exclude .isLazy or you pick up unwanted hijackers. (This is what one reaps when reusing bits for ad-hoc encoding schemes.)

      scala> import scala.reflect.runtime.universe._
      import scala.reflect.runtime.universe._
      
      scala> class A { lazy val x = 1 }
      defined class A
      
      scala> typeOf[A].members.toList filter (x => x.isTerm && x.asTerm.isVar)
      res0: List[reflect.runtime.universe.Symbol] = List(lazy value x)
      

        Activity

        Show
        Paul Phillips added a comment - https://github.com/scala/scala/pull/1665

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development