Skip to content

Commit

Permalink
Test case for scala#13128
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 30, 2021
1 parent 565c5aa commit f89ccf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/pos/i13128/A_1.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
opaque type Foo[T <: Int] = Int
3 changes: 3 additions & 0 deletions tests/pos/i13128/B_2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def grabT[T <: Int](arg : Foo[T]) : T = ???
final val t1 = grabT(??? : Foo[8])
val t2 : 8 = t1

0 comments on commit f89ccf4

Please sign in to comment.