Files
kotlin-fork/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

40 lines
549 B
Kotlin
Vendored

val testSimpleUIntLiteral: UInt
field = 1
get
val testSimpleUIntLiteralWithOverflow: UInt
field = -1
get
val testUByteWithExpectedType: UByte
field = 1B
get
val testUShortWithExpectedType: UShort
field = 1S
get
val testUIntWithExpectedType: UInt
field = 1
get
val testULongWithExpectedType: ULong
field = 1L
get
val testToUByte: UByte
field = 1.toUByte()
get
val testToUShort: UShort
field = 1.toUShort()
get
val testToUInt: UInt
field = 1.toUInt()
get
val testToULong: ULong
field = 1.toULong()
get