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

Closed
opened 2018-08-11 21:14:06 +02:00 by belliash · 1 comment
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 2018-08-11 21:14:06 +02:00
belliash self-assigned this 2018-08-11 22:49:48 +02:00
Author
Owner

Will be done in compiler_rework branch.

Will be done in compiler_rework branch.
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 2018-08-11 23:00:15 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aerscript/Aer#41
No description provided.