Skip to content

Commit b080235

Browse files
committed
test: add regression test for #7790
1 parent 5c4e597 commit b080235

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i7790.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// https://github.com/lampepfl/dotty/issues/7790
2+
trait Foo:
3+
given Int = 10
4+
def map(f: Int ?=> Int) = f
5+
def map(f: Int ?=> String) = f
6+
7+
@main def Test =
8+
val m: Foo = ???
9+
m.map((x: Int) ?=> x)

0 commit comments

Comments
 (0)