Scala Programming Language
  1. Scala Programming Language
  2. SI-7359

spurious cyclic ref error with nested java class

    Details

      Description

      // Cyclic.java
      abstract class Cyclic {
        static interface Inner<T extends Inner> { }
      }
      
      // Test.scala
      import scala.reflect.runtime.universe._
      
      object Test extends App {
        println(typeOf[Cyclic].members)
      }
      

      running this program yields

      scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving type T
      	at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1218)
      

        Issue Links

          Activity

          Hide
          Jason Zaugg added a comment -

          This appears to by fixed since f274490de1 / SI-6548, so just a test case is needed.

          Show
          Jason Zaugg added a comment - This appears to by fixed since f274490de1 / SI-6548 , so just a test case is needed.
          Hide
          Adriaan Moors added a comment -
          Show
          Adriaan Moors added a comment - backport in https://github.com/scala/scala/pull/2536

            People

            • Assignee:
              Adriaan Moors
              Reporter:
              Adriaan Moors
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development