Don't use backing fields for properties generated from macros

Thus don't require running initializer for these.
This commit is contained in:
Svyatoslav Scherbina
2018-02-20 11:20:30 +03:00
committed by SvyatoslavScherbina
parent 05da6481d9
commit f3dbf8f5d4
@@ -776,7 +776,7 @@ class StubGenerator(
// Also it provokes constant propagation which can reduce binary compatibility
// when replacing interop stubs without recompiling the application.
out("val ${constant.name.asSimpleName()}: $kotlinType = $literal")
out("val ${constant.name.asSimpleName()}: $kotlinType get() = $literal")
}
private fun generateStubs(): List<KotlinStub> {