Skip to content

Commit 9fac523

Browse files
KacperFKorbantgodzik
authored andcommitted
fix: Allow as as an infix type in non context bound types
1 parent ff8d922 commit 9fac523

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/i21769.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
infix trait as[From, To]
3+
4+
val conv: (String as Int) = ???
5+
given instance: (String as Int) = ???
6+
def test(ev: (String as Int)) = ???
7+
8+
class F
9+
10+
class K extends (F as K)

0 commit comments

Comments
 (0)