Implicit virtual on override

This commit is contained in:
2026-07-09 06:37:37 +02:00
parent 08771fe5be
commit df8e67fd4f
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ pub class Dog : Mammal
super = Super::new();
}
pub virtual String speak(&self) override(Animal)
pub String speak(&self) override(Animal)
{
"Woof!".to_string()
}