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
added the bug label 2018-08-11 21:14:06 +02:00
belliash
self-assigned this 2018-08-11 22:49:48 +02:00
belliash
changed title from Method without body can be declared in non-virtual class. to Method without body can be declared in non-virtual class2018-08-11 23:00:15 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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