Replace equals with == involving FP types: handle possible smart casts
This fixes two relevant tests with smart casts #KT-25933 Fixed
This commit is contained in:
@@ -986,6 +986,10 @@ public abstract class KotlinBuiltIns {
|
||||
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES.number);
|
||||
}
|
||||
|
||||
public static boolean isNumberOrNullableNumber(@NotNull KotlinType type) {
|
||||
return isConstructedFromGivenClass(type, FQ_NAMES.number);
|
||||
}
|
||||
|
||||
public static boolean isChar(@NotNull KotlinType type) {
|
||||
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES._char);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user