Improved override
This commit is contained in:
@@ -21,7 +21,7 @@ pub class Dog : Animal {
|
||||
}
|
||||
}
|
||||
|
||||
pub override fn speak(*self) {
|
||||
pub override(Animal<i32>) fn speak(*self) {
|
||||
println!("Woof!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user