[JS IR BE] Implement type check
* IrTypeOperator lowering * runtime support * refactoring
This commit is contained in:
@@ -944,6 +944,10 @@ public abstract class KotlinBuiltIns {
|
||||
return classFqNameEquals(classDescriptor, FQ_NAMES._boolean);
|
||||
}
|
||||
|
||||
public static boolean isNumber(@NotNull KotlinType type) {
|
||||
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES.number);
|
||||
}
|
||||
|
||||
public static boolean isChar(@NotNull KotlinType type) {
|
||||
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES._char);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user