Report warning on generic type as argument for reified parameter
#KT-6484 Fixed
This commit is contained in:
@@ -67,6 +67,7 @@ fun KotlinType?.isArrayOfNothing(): Boolean {
|
||||
fun KotlinType.isSubtypeOf(superType: KotlinType): Boolean = KotlinTypeChecker.DEFAULT.isSubtypeOf(this, superType)
|
||||
|
||||
fun KotlinType.cannotBeReified(): Boolean = KotlinBuiltIns.isNothingOrNullableNothing(this) || this.isDynamic()
|
||||
fun KotlinType.unsafeAsReifiedArgument(): Boolean = arguments.any { !it.isStarProjection }
|
||||
|
||||
fun TypeProjection.substitute(doSubstitute: (KotlinType) -> KotlinType): TypeProjection {
|
||||
return if (isStarProjection)
|
||||
|
||||
Reference in New Issue
Block a user