psi2ir: support unsigned integer literals
NB in FE unsigned integer constants are now represented using signed integer types (e.g., UInt constant actually holds an Int value). So, in IR so far we also represent unsigned constant literals as constant values of corresponding signed types, but with corresponding unsigned type: 0xFFFF_FFFFu becomes 'CONST Int type=kotlin.UInt value=-1'
This commit is contained in:
@@ -1082,6 +1082,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/expressions/typeParameterClassLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedIntegerLiterals.kt")
|
||||
public void testUnsignedIntegerLiterals() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useImportedMember.kt")
|
||||
public void testUseImportedMember() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/useImportedMember.kt");
|
||||
|
||||
Reference in New Issue
Block a user