[Tests] Add test for #KT-65712
This commit is contained in:
committed by
Space Team
parent
9391ff8179
commit
91e4837c95
+11
@@ -0,0 +1,11 @@
|
||||
// ISSUE: KT-65712
|
||||
|
||||
fun test(a: BodySpec<List<*>, *>) {
|
||||
a.value<<!UPPER_BOUND_VIOLATED!>BodySpec<List<*>, *><!>>()
|
||||
a.value<<!UPPER_BOUND_VIOLATED!>BodySpec<*, *><!>>()
|
||||
a.value<<!UPPER_BOUND_VIOLATED!>BodySpec<Int, *><!>>()
|
||||
}
|
||||
|
||||
interface BodySpec<B, S : BodySpec<B, S>> {
|
||||
fun <T : S> value(): T
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// ISSUE: KT-65712
|
||||
|
||||
fun test(a: BodySpec<List<*>, *>) {
|
||||
a.value<BodySpec<List<*>, *>>()
|
||||
a.value<BodySpec<*, *>>()
|
||||
a.value<BodySpec<Int, *>>()
|
||||
}
|
||||
|
||||
interface BodySpec<B, S : BodySpec<B, S>> {
|
||||
fun <T : S> value(): T
|
||||
}
|
||||
Reference in New Issue
Block a user