Details

      Description

      ~/code scala210
      Welcome to Scala version 2.10.0-M6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_27).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> object Bish {
           |   def m {
           |     object Bash {
           |       reflect.runtime.currentMirror.universe.typeOf[Option[_]]
           |     }
           |   }
           | }
      <console>:10: error: exception during macro expansion: java.lang.StackOverflowError
                   reflect.runtime.currentMirror.universe.typeOf[Option[_]]
                                                                ^
      
      scala> object Bosh {
           |   def Besh {
           |     new {
           |       val t = reflect.runtime.currentMirror.universe.typeOf[Option[_]]
           |       val x = t
           |     }
           |   }
           | }
      <console>:11: error: recursive value t needs type
                   val x = t
                           ^
      <console>:10: error: exception during macro expansion: 
      scala.reflect.makro.UnexpectedReificationError: internal error: erroneous reifees are not supported, make sure that your reifee has typechecked successfully before passing it to the reifier
      	at scala.reflect.reify.Errors$class.CannotReifyErroneousReifee(Errors.scala:72)
      

        Activity

        Hide
        Eugene Burmako added a comment -

        Also see SI-5756

        Show
        Eugene Burmako added a comment - Also see SI-5756
        Show
        Eugene Burmako added a comment - https://github.com/scala/scala/pull/1090
        Show
        Eugene Burmako added a comment - Fixed in https://github.com/scala/scala/commit/2ba6774766ec695fef36e605472100922b56b91f and https://github.com/scala/scala/commit/4ced74a5eece7ff27e24b6dcd5f607c130fb1342

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Jason Zaugg
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development