Optimize const vals by inlining them at use sites
#KT-11734 Fixed #KT-13570 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
const val one = 1
|
||||
const val two = 2
|
||||
|
||||
fun test1() {
|
||||
if (!(one < two)) {
|
||||
val p = 1
|
||||
}
|
||||
}
|
||||
// 0 IF
|
||||
@@ -1,3 +1,5 @@
|
||||
// LANGUAGE_VERSION: 1.0
|
||||
|
||||
const val one = 1
|
||||
const val two = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user