Skip to content

Commit

Permalink
Fix test for method type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhebben committed Mar 15, 2024
1 parent 5fc6f92 commit 3ae11ff
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#output: hello
#output: void

class Foo {
print() {
virtual class Foo {
print(): void {
println("hello");
}
}

class Bar : Foo {
override print() {
println("world");
}
}

new Foo().print();

// expressions inside typeof will not be executed, so the print() won't be called
Expand Down

0 comments on commit 3ae11ff

Please sign in to comment.