// RUN_PIPELINE_TILL: BACKEND
// ISSUE: KT-21463
// SKIP_TXT

class Bound<T: Number>(val value: T)

fun test_1() {
    val b: Bound<in Int> = Bound(1)
    val vl: Number = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?"), TYPE_MISMATCH!>b.value<!>
}

fun test_2() {
    val b: Bound<*> = Bound(1)
    val vl: Number = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Number")!>b.value<!>
}

/* GENERATED_FIR_TAGS: capturedType, classDeclaration, functionDeclaration, inProjection, integerLiteral, localProperty,
primaryConstructor, propertyDeclaration, starProjection, typeConstraint, typeParameter */
