Skip to content

Commit 43e1599

Browse files
oderskytanishiking
authored andcommitted
Test case for scala#13128
1 parent 2dd8436 commit 43e1599

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)