Support constant evaluation of unsigned type constructors

#KT-23816 In Progress
This commit is contained in:
Mikhail Zarechenskiy
2018-05-21 17:30:30 +03:00
parent bf5f710f39
commit 656f6cbded
24 changed files with 569 additions and 11 deletions
@@ -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