-
Notifications
You must be signed in to change notification settings - Fork 15
Static Struct Type
Eric Yang edited this page Jun 27, 2021
·
3 revisions
类型的相等测试由类型真实的结构而不是名字来决定。
type show {
show: This -> string
}
type Foo() impl {
fun show(this: This) -> string {
return "Hello Deeplang";
}
}
let foo: Show = new Foo();