Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue 8128 - allow unittest blocks in interfaces.

  • Loading branch information...
commit e1f95f3251c9af20dd6d655c9ee022a51e3cce0c 1 parent a7c40c6
alexrp authored alexrp committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/func.c
View
2  src/func.c
@@ -353,7 +353,7 @@ void FuncDeclaration::semantic(Scope *sc)
#endif
isDtorDeclaration() ||
isInvariantDeclaration() ||
- isUnitTestDeclaration() || isNewDeclaration() || isDelete())
+ isNewDeclaration() || isDelete())
error("constructors, destructors, postblits, invariants, unittests, new and delete functions are not allowed in interface %s", id->toChars());
if (fbody && isVirtual())
error("function body is not abstract in interface %s", id->toChars());
Please sign in to comment.
Something went wrong with that request. Please try again.