[FIR/IR generator] Add default arguments to TypeVariable constructor

This commit is contained in:
Sergej Jaskiewicz
2023-10-27 12:59:09 +02:00
committed by Space Team
parent 730f98ba38
commit bca35c0015
3 changed files with 4 additions and 4 deletions
@@ -283,8 +283,8 @@ fun <Self : ParametrizedTypeRef<Self, PositionTypeParameterRef>> ParametrizedTyp
class TypeVariable(
name: String,
val bounds: List<TypeRef>,
val variance: Variance,
val bounds: List<TypeRef> = emptyList(),
val variance: Variance = Variance.INVARIANT,
) : NamedTypeParameterRef(name)
fun <P : TypeParameterRef> KClass<*>.asRef(): ClassRef<P> {