[K/Wasm] Allow to export unsigned numbers

This commit is contained in:
Artem Kobzar
2023-12-08 09:06:19 +00:00
committed by Space Team
parent a3c1f4ea12
commit 2eb1e65bbf
19 changed files with 528 additions and 24 deletions
@@ -956,6 +956,10 @@ public abstract class KotlinBuiltIns {
return type != null && isNotNullConstructedFromGivenClass(type, FqNames.string);
}
public static boolean isUnsignedNumber(@Nullable KotlinType type) {
return type != null && (isUByte(type) || isUShort(type) || isUInt(type) || isULong(type));
}
public static boolean isCharSequenceOrNullableCharSequence(@Nullable KotlinType type) {
return type != null && isConstructedFromGivenClass(type, FqNames.charSequence);
}