16 lines
172 B
Plaintext
16 lines
172 B
Plaintext
type t {
|
|
int md(int);
|
|
}
|
|
|
|
class c() : t impl t {
|
|
int my_md(int x) {
|
|
return this.md(x);
|
|
}
|
|
export t : my_md as md;
|
|
}
|
|
|
|
int main() {
|
|
t x = new c:t();
|
|
x.md(3);
|
|
}
|