Improved override

This commit is contained in:
2026-06-09 13:51:32 +02:00
parent 0347892056
commit a9f6cce1b3
7 changed files with 23 additions and 39 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ pub class Dog : Animal {
}
}
pub override fn speak(*self) {
pub override(Animal<i32>) fn speak(*self) {
println!("Woof!");
}
}