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
于 2018-08-11 23:00:15 +02:00 修改标题 Method without body can be declared in non-virtual class. 为 Method without body can be declared in non-virtual class
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.为 Method without body can be declared in non-virtual class