Skip to content

Commit

Permalink
test: add test for updated SymbolNotFound regex with -explain flag
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranAhlawat authored and tgodzik committed Oct 20, 2023
1 parent 8d589bb commit 3bc135f
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,27 @@ class ImportMissingSymbolLspSuite
|""".stripMargin,
)

check(
"scalac-explain-flag",
"""|package a
|
|object A {
| val f = <<Future>>.successful(2)
|}
|""".stripMargin,
s"""|${ImportMissingSymbol.title("Future", "scala.concurrent")}
|${ImportMissingSymbol.title("Future", "java.util.concurrent")}
|${CreateNewSymbol.title("Future")}
|""".stripMargin,
"""|package a
|
|import scala.concurrent.Future
|
|object A {
| val f = Future.successful(2)
|}
|""".stripMargin,
scalaVersion = "3.3.1",
scalacOptions = List("-explain"),
)
}

0 comments on commit 3bc135f

Please sign in to comment.