Don't initialize const properties in constructor

#KT-9532 Fixed
This commit is contained in:
Michael Bogdanov
2015-10-17 12:32:41 +03:00
committed by Michael Bogdanov
parent 7d7d37719b
commit 3452fc8d02
10 changed files with 123 additions and 0 deletions

View 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