14 lines
295 B
Plaintext
14 lines
295 B
Plaintext
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 {}
|