phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
19
tests/development/test_implicit_override_error.hako
Normal file
19
tests/development/test_implicit_override_error.hako
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
// 暗黙オーバーライド禁止のテスト
|
||||
box Parent {
|
||||
init { }
|
||||
|
||||
method() {
|
||||
return "Parent method"
|
||||
}
|
||||
}
|
||||
|
||||
box Child from Parent {
|
||||
init { }
|
||||
|
||||
// overrideなしで同名メソッド定義(エラーになるはず)
|
||||
method() {
|
||||
return "Child method"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user