blob: b7cd00af703c18300e3b27231098a93a0e2e65f6 [file]
// RUN_PIPELINE_TILL: CODEGEN
// LANGUAGE: +InferenceEnhancementsIn21
// ISSUE: KT-61227
// FIR_DUMP
fun <B> goBar(t: B) = Bar<B & Any>(t)
fun <BB> goBarNoTypeArguments(t: BB) = Bar(t)
class Bar<BT : Any>(t: BT?)
fun <F> goFoo(t: F) = foo<F & Any>(t)
fun <FT : Any> foo(t: FT?) {}
/* GENERATED_FIR_TAGS: classDeclaration, dnnType, functionDeclaration, nullableType, primaryConstructor, typeConstraint,
typeParameter */