ensureNeverFrozen

external fun Any.ensureNeverFrozen()

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

See also

Throws

thrown immediately if this object is already frozen