[JS IR] Add test on initialization calling only once
This commit is contained in:
+1
-2
@@ -284,8 +284,7 @@ private fun <T> IrDeclaration.withPersistentSafe(transform: IrDeclaration.() ->
|
||||
} else null
|
||||
|
||||
private fun IrDeclaration.isCompatibleDeclaration(context: JsIrBackendContext) =
|
||||
(this as? IrField)
|
||||
?.correspondingProperty
|
||||
correspondingProperty
|
||||
?.hasAnnotation(context.intrinsics.jsEagerInitializationAnnotationSymbol) != true &&
|
||||
withPersistentSafe { origin in compatibleOrigins } == true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user