Added method vptr condition
This commit is contained in:
@@ -19,7 +19,7 @@ pub class Animal<T> {
|
||||
|
||||
pub class Mammal<T> : Animal<T> {
|
||||
constructor() {
|
||||
super -> Super::new();
|
||||
super = Super::new();
|
||||
}
|
||||
|
||||
pub fn args_test(*self, x i32, y *str) {}
|
||||
@@ -31,7 +31,7 @@ pub class Mammal<T> : Animal<T> {
|
||||
|
||||
pub class Dog : Mammal<i32> {
|
||||
constructor() {
|
||||
super -> Super::new();
|
||||
super = Super::new();
|
||||
}
|
||||
|
||||
pub override(Animal<i32>) fn speak(*self) {
|
||||
|
||||
Reference in New Issue
Block a user