blob: ce5f57d0896f1a23b6e86d8c46dd589572d50944 [file]
// RUN_PIPELINE_TILL: CODEGEN
// DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
// ISSUE: KT-32383
class Inv<T>
class Out<out T>
class In<in T>
fun <T> invOf(vararg t: T): Inv<T> = null!!
fun <T> outOf(vararg t: T): Out<T> = null!!
fun <T> inOf(vararg t: T): In<T> = null!!
interface Foo
abstract class Bar<out TFoo : Foo>
enum class AFoo : Foo
object A : Bar<AFoo>()
enum class BFoo : Foo
object B : Bar<BFoo>()
val invs = invOf(A, B)
val outs = outOf(A, B)
val ins = inOf(A, B)
/* GENERATED_FIR_TAGS: checkNotNullCall, classDeclaration, enumDeclaration, functionDeclaration, in,
interfaceDeclaration, intersectionType, nullableType, objectDeclaration, out, outProjection, propertyDeclaration,
starProjection, typeConstraint, typeParameter, vararg */