Skip to content

Commit 941f2e3

Browse files
committed
Test case for #13128
1 parent 0357b84 commit 941f2e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/pos/i13128/A_1.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
opaque type Foo[T <: Int] = Int

tests/pos/i13128/B_2.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def grabT[T <: Int](arg : Foo[T]) : T = ???
2+
final val t1 = grabT(??? : Foo[8])
3+
val t2 : 8 = t1

0 commit comments

Comments
 (0)