[Native] Move hasNonConstInitializer from IrUtils2
This function could be useful for other backends.
This commit is contained in:
-3
@@ -31,6 +31,3 @@ fun IrBuilderWithScope.irCatch() =
|
||||
isLateinit = false
|
||||
)
|
||||
)
|
||||
|
||||
val IrField.hasNonConstInitializer: Boolean
|
||||
get() = initializer?.expression.let { it != null && it !is IrConst<*> && it !is IrConstantValue }
|
||||
|
||||
Reference in New Issue
Block a user