Support constant evaluation of unsigned type constructors
#KT-23816 In Progress
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
package kotlin
|
||||
|
||||
inline class UInt(val value: Int)
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
const val u = UInt(14)
|
||||
|
||||
fun foo() {
|
||||
u
|
||||
if (u.value != 14) {}
|
||||
}
|
||||
|
||||
// @TestKt.class:
|
||||
// 0 GETSTATIC
|
||||
Reference in New Issue
Block a user