Skip to content

Commit

Permalink
chore: port extension-methods-complex test fix from dotty
Browse files Browse the repository at this point in the history
fix `HoverScala3TypeSuite.extension-methods-complex` test after
scala/scala3@d521be5
  • Loading branch information
kasiaMarek authored and tgodzik committed Aug 10, 2023
1 parent 11e52f9 commit 6f844a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ class HoverScala3TypeSuite extends BaseHoverSuite {
|class C
|object Foo:
| extension [T](using A)(s: T)(using B)
| def double[G](using C)(times: G) = (s.toString + s.toString) * times
| def double[G <: Int](using C)(times: G) = (s.toString + s.toString) * times
| end extension
| given A with {}
| given B with {}
| given C with {}
| "".<<doub@@le(1)>>
|end Foo
|""".stripMargin,
"extension [T](using A)(s: T) def double(using B)[G](using C)(times: G): String".hover,
"extension [T](using A)(s: T) def double(using B)[G <: Int](using C)(times: G): String".hover,
)

check(
Expand Down

0 comments on commit 6f844a7

Please sign in to comment.