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 4c33849 commit 9cdafca
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 9cdafca

Please sign in to comment.