mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Abstract functions may have bodies.
Fixes: run/a/abstract_17_A,B
This commit is contained in:
@@ -378,8 +378,6 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
|
||||
Logger::println("DtoDeclareFunction(%s): %s", fdecl->toPrettyChars(), fdecl->loc.toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
assert(!fdecl->isAbstract());
|
||||
|
||||
// intrinsic sanity check
|
||||
if (fdecl->llvmInternal == LLVMintrinsic && fdecl->fbody) {
|
||||
error(fdecl->loc, "intrinsics cannot have function bodies");
|
||||
|
||||
Reference in New Issue
Block a user