[K2] Don't crash compiler if receiver on property wasn't evaluated
Compilation crash must be handled separately in `convertToConstantValues` method because we still want successfully compile common code. All constants will be evaluated later on fir2ir phase. #KT-59362 Fixed
This commit is contained in:
+3
-1
@@ -4,4 +4,6 @@ $TESTDATA_DIR$/kt58139/platform.kt
|
||||
-language-version
|
||||
2.0
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
$TEMP_DIR$
|
||||
-cp
|
||||
$TESTDATA_DIR$/../../../../dist/common/kotlin-stdlib-common.jar
|
||||
@@ -6,3 +6,4 @@ annotation class AnnKlass(val arg: String)
|
||||
fun foo() {}
|
||||
|
||||
const val BATCH_SIZE: Int = 16 * 1024
|
||||
const val REPLACEMENT_BYTE: Byte = '?'.code.toByte()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const val DOUBLE_BATCH_SIZE = 2 * BATCH_SIZE
|
||||
const val REPLACEMENT_BYTE_AS_INT = REPLACEMENT_BYTE.toInt()
|
||||
|
||||
annotation class A(val value: Int)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user