Skip to content


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
2  src/func.c
@@ -353,7 +353,7 @@ void FuncDeclaration::semantic(Scope *sc)
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.