Skip to content

Commit

Permalink
test: fix implicit-args-3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek authored and tgodzik committed Jul 16, 2024
1 parent 34db21f commit d69e6dd
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions tests/cross/src/test/scala/tests/pc/PcReferencesSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,36 @@ class PcReferencesSuite extends BasePCSuite with RangeReplace {
)
)

// for Scala 3 the symbol in bar reference is missing (<none>)
check(
"implicit-args-3".tag(IgnoreScala3),
"implicit-args-3",
"""|package example
|
|class Bar(i: Int)
|class Foo(implicit b: Bar)
|
|object Hello {
| implicit val b@@arr = new Bar(1)
| implicit val b@@arr: Bar = new Bar(1)
| for {
| _ <- Some(1)
| foo = <<>>new Foo()
| } yield ()
|}
|""".stripMargin
|""".stripMargin,
compat = Map(
"3" -> """|package example
|
|class Bar(i: Int)
|class Foo(implicit b: Bar)
|
|object Hello {
| implicit val barr: Bar = new Bar(1)
| for {
| _ <- Some(1)
| foo = new Foo()<<>>
| } yield ()
|}
|""".stripMargin
)
)

check(
Expand Down

0 comments on commit d69e6dd

Please sign in to comment.