JS/RTTI: (minor) fixed typo
This commit is contained in:
committed by
Alexey Andreev
parent
57fbab9f7c
commit
d42cbde74d
@@ -120,7 +120,7 @@ public class CastDiagnosticsUtil {
|
||||
if (typeChecker.isSubtypeOf(supertype, subtype)) return false;
|
||||
|
||||
// downcasting to a non-reified type parameter is always erased
|
||||
if (TypeUtils.isNonReifiedTypeParemeter(subtype)) return true;
|
||||
if (TypeUtils.isNonReifiedTypeParameter(subtype)) return true;
|
||||
|
||||
// Check that we are actually casting to a generic type
|
||||
// NOTE: this does not account for 'as Array<List<T>>'
|
||||
|
||||
@@ -490,7 +490,12 @@ public class TypeUtils {
|
||||
return getTypeParameterDescriptorOrNull(type) != null;
|
||||
}
|
||||
|
||||
public static boolean isNonReifiedTypeParemeter(@NotNull KotlinType type) {
|
||||
public static boolean isReifiedTypeParameter(@NotNull KotlinType type) {
|
||||
TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull(type);
|
||||
return typeParameterDescriptor != null && typeParameterDescriptor.isReified();
|
||||
}
|
||||
|
||||
public static boolean isNonReifiedTypeParameter(@NotNull KotlinType type) {
|
||||
TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull(type);
|
||||
return typeParameterDescriptor != null && !typeParameterDescriptor.isReified();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user