PH7 Engine allows a virtual method to be declared in non-virtual class, example:
class Test {
function a();
}
Above example will not throw any compilation error, while we all expect it to throw some error like "Non-abstract method Test::a() must contain body".
PH7 Engine allows a virtual method to be declared in non-virtual class, example:
class Test {
function a();
}
Above example will not throw any compilation error, while we all expect it to throw some error like "Non-abstract method Test::a() must contain body".
belliash
changed title from Method without body can be declared in non-virtual class. to Method without body can be declared in non-virtual class2 years ago
PH7 Engine allows a virtual method to be declared in non-virtual class, example:
Above example will not throw any compilation error, while we all expect it to throw some error like "Non-abstract method Test::a() must contain body".
Will be done in compiler_rework branch.
Method without body can be declared in non-virtual class.to Method without body can be declared in non-virtual class 2 years ago