Skip to content

Forward reference through type alias goes undetected #11177

@Jasper-M

Description

@Jasper-M
scala> class Foo { 
     |   class Bar
     |   def foo = { 
     |     type T = b.Bar
     |     val a = new T
     |     val b = new Foo 
     |   } 
     | }
error: Error while emitting <console>
value b

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler crashfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions