ensureNeverFrozen

external fun Any.ensureNeverFrozen()(source)

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