You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really useful in an object declaration since we can self reference there, but useful in protocols where we want to reference the actual object type.
protocol Clonable {
fun clone() > Self;
}
object(Clonable) Person {
str name,
fun clone() > Self {
return Person { name = this.name };
}
}
The text was updated successfully, but these errors were encountered:
Not really useful in an object declaration since we can self reference there, but useful in protocols where we want to reference the actual object type.
The text was updated successfully, but these errors were encountered: