mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
13 lines
294 B
TypeScript
13 lines
294 B
TypeScript
class Foo {
|
|
baz(): void {}
|
|
}
|
|
class Bar extends Foo {
|
|
baz(): void {}
|
|
}
|
|
export function test(foo: Foo): void {
|
|
foo.baz();
|
|
}
|
|
// FIXME: this results in a call to Foo.baz instead of Bar.baz above.
|
|
// ultimately, overloaded functions should implicitly become virtual.
|
|
test(changetype<Bar>(0));
|