mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Don't initialize const properties in constructor
#KT-9532 Fixed
This commit is contained in:
committed by
Michael Bogdanov
parent
7d7d37719b
commit
3452fc8d02
10
compiler/testData/codegen/bytecodeText/constants/kt9532.kt
vendored
Normal file
10
compiler/testData/codegen/bytecodeText/constants/kt9532.kt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
object A {
|
||||
private const val a = "$"
|
||||
private const val b = "1234$a"
|
||||
private const val c = 10000
|
||||
}
|
||||
|
||||
//check that constant initializers inlined
|
||||
|
||||
// 0 GETSTATIC
|
||||
// 2 PUTSTATIC A.INSTANCE
|
||||
Reference in New Issue
Block a user