Skip to content

Commit cfa9da3

Browse files
committed
test: add in a regression test for #13334
[skip community_build] closes #13334
1 parent 7d6c835 commit cfa9da3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/run/i13334.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// https://github.com/lampepfl/dotty/issues/13334
2+
trait DFC
3+
given DFC = new DFC {}
4+
5+
trait TC
6+
object TC:
7+
def foo()(using DFC): Unit = {}
8+
9+
inline given (using DFC): TC = new TC:
10+
foo()
11+
12+
class Foo(using DFC):
13+
summon[TC]
14+
15+
@main def Test() =
16+
val top = new Foo

0 commit comments

Comments
 (0)