|
@@ -66,7 +66,10 @@ let type_function ctx (args : function_arguments) ret fmode e do_display p =
|
|
|
*)
|
|
|
EBlock [],p
|
|
|
else
|
|
|
- error "Function body required" p
|
|
|
+ if fmode = FunMember && has_class_flag ctx.curclass CAbstract then
|
|
|
+ error "Function body or abstract modifier required" p
|
|
|
+ else
|
|
|
+ error "Function body required" p
|
|
|
| Some e -> e
|
|
|
in
|
|
|
let is_position_debug = Meta.has (Meta.Custom ":debug.position") ctx.curfield.cf_meta in
|