Skip to content

Commit

Permalink
test: add in a regression test for scala#13334
Browse files Browse the repository at this point in the history
[skip community_build]

closes scala#13334
  • Loading branch information
ckipp01 committed May 15, 2023
1 parent 7d6c835 commit cfa9da3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/run/i13334.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// https://github.com/lampepfl/dotty/issues/13334
trait DFC
given DFC = new DFC {}

trait TC
object TC:
def foo()(using DFC): Unit = {}

inline given (using DFC): TC = new TC:
foo()

class Foo(using DFC):
summon[TC]

@main def Test() =
val top = new Foo

0 comments on commit cfa9da3

Please sign in to comment.