blob: 5ede33584a6fb5337a924e7d7a9fe37d520c153a [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-21463
class Bound<T: Number>(val value: T)
fun test_1() {
val b: Bound<in Int> = Bound(1)
val vl: Number = <!DEBUG_INFO_EXPRESSION_TYPE("CapturedType(in kotlin.Int)")!>b.value<!>
}
fun test_2() {
val b: Bound<*> = Bound(1)
val vl: Number = <!DEBUG_INFO_EXPRESSION_TYPE("CapturedType(*)")!>b.value<!>
}
/* GENERATED_FIR_TAGS: capturedType, classDeclaration, functionDeclaration, inProjection, integerLiteral, localProperty,
primaryConstructor, propertyDeclaration, starProjection, typeConstraint, typeParameter */