Don't use backing fields for properties generated from macros
Thus don't require running initializer for these.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
05da6481d9
commit
f3dbf8f5d4
+1
-1
@@ -776,7 +776,7 @@ class StubGenerator(
|
|||||||
// Also it provokes constant propagation which can reduce binary compatibility
|
// Also it provokes constant propagation which can reduce binary compatibility
|
||||||
// when replacing interop stubs without recompiling the application.
|
// 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> {
|
private fun generateStubs(): List<KotlinStub> {
|
||||||
|
|||||||
Reference in New Issue
Block a user