#41 Method without body can be declared in non-virtual class

Closed
opened 2 years ago by belliash · 1 comments
belliash commented 2 years ago
Owner

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 2 years ago
belliash self-assigned this 2 years ago
belliash commented 2 years ago
Poster
Owner

Will be done in compiler_rework branch.

Will be done in compiler_rework branch.
belliash closed this issue 2 years ago
belliash changed title from Method without body can be declared in non-virtual class. to Method without body can be declared in non-virtual class 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.