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

已关闭
belliash2018-08-11 21:14:06 +02:00创建 · 1 评论
管理员

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".
belliash2018-08-11 21:14:06 +02:00 添加了标签
bug
belliash2018-08-11 22:49:48 +02:00 指派给自己
作者
管理员

Will be done in compiler_rework branch.

Will be done in compiler_rework branch.
belliash2018-08-11 22:53:43 +02:00 关闭此工单
belliash2018-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
登录 并参与到对话中。
1 名参与者
通知
到期时间
未设置到期时间。
依赖工单

没有设置依赖项。

参考:aerscript/Aer#41
没有提供说明。