Generate static backing fields for properties in object

#KT-4973 Fixed
This commit is contained in:
Michael Bogdanov
2014-09-24 18:35:51 +04:00
parent 37bb4ae984
commit 5412a67d29
29 changed files with 639 additions and 463 deletions
@@ -0,0 +1,14 @@
Cleaning output files:
out/production/module/test/Object.class
End of files
Compiling files:
src/const.kt
End of files
Cleaning output files:
out/production/module/test/Object.class
out/production/module/test/Usage.class
End of files
Compiling files:
src/const.kt
src/usage.kt
End of files
@@ -0,0 +1,5 @@
package test
object Object {
val CONST = "old"
}
@@ -0,0 +1,5 @@
package test
object Object {
val CONST = "new"
}
@@ -0,0 +1,4 @@
package test
deprecated(Object.CONST + Object.CONST)
class Usage