split Bounds.jet test into smaller tests
This commit is contained in:
@@ -24,17 +24,3 @@ namespace boundsWithSubstitutors {
|
|||||||
abstract val x : fun (B<<error>Char</error>>) : B<<error>Any</error>>
|
abstract val x : fun (B<<error>Char</error>>) : B<<error>Any</error>>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fun test() {
|
|
||||||
foo<<error>Int?</error>>()
|
|
||||||
foo<Int>()
|
|
||||||
bar<Int?>()
|
|
||||||
bar<Int>()
|
|
||||||
bar<<error>Double?</error>>()
|
|
||||||
bar<<error>Double</error>>()
|
|
||||||
1.buzz<<error>Double</error>>()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun foo<T : Any>() {}
|
|
||||||
fun bar<T : Int?>() {}
|
|
||||||
fun <T : <warning>Int</warning>> Int.buzz() : Unit {}
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
fun test() {
|
||||||
|
foo<<error>Int?</error>>()
|
||||||
|
foo<Int>()
|
||||||
|
bar<Int?>()
|
||||||
|
bar<Int>()
|
||||||
|
bar<<error>Double?</error>>()
|
||||||
|
bar<<error>Double</error>>()
|
||||||
|
1.buzz<<error>Double</error>>()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun foo<T : Any>() {}
|
||||||
|
fun bar<T : Int?>() {}
|
||||||
|
fun <T : <warning>Int</warning>> Int.buzz() : Unit {}
|
||||||
Reference in New Issue
Block a user