ensureNeverFrozen

Deprecated

Error since 2.1

Support for the legacy memory manager has been completely removed. Usages of this function can be safely dropped.

This function ensures that if we see such an object during freezing attempt - freeze fails and FreezingException is thrown.

Since Kotlin

1.3

See also

Throws

thrown immediately if this object is already frozen