Metals: Local type aliases not detected in goto implementation

Created on 24 Feb 2020  路  2Comments  路  Source: scalameta/metals

Describe the bug

ImplementationLspSuite.scala

check(
    "type-local",
    """|/a/src/main/scala/a/Main.scala
       |object Test {
       |  def main {
       |    class @@A
       |    class <<B>> extends A
       |    type C = A
       |    class <<D>> extends C
       |  }
       |}
       |""".stripMargin
  )
=> Diff (- obtained, + expected)
     type C = A
-    class D extends C
+    class <<D>> extends C
   }

Search terms
implementation search type alias

bug

Most helpful comment

Just so someone else doesn't grab this, @eilite has been looking at this, and will shoot in a pr.

All 2 comments

Just so someone else doesn't grab this, @eilite has been looking at this, and will shoot in a pr.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oscarvarto picture oscarvarto  路  3Comments

tgodzik picture tgodzik  路  4Comments

fommil picture fommil  路  3Comments

ckipp01 picture ckipp01  路  3Comments

olafurpg picture olafurpg  路  4Comments