diff options
Diffstat (limited to 'gcc/d/dmd/func.c')
-rw-r--r-- | gcc/d/dmd/func.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/d/dmd/func.c b/gcc/d/dmd/func.c index 11e4b2f..ab74dc5 100644 --- a/gcc/d/dmd/func.c +++ b/gcc/d/dmd/func.c @@ -1491,8 +1491,7 @@ void FuncDeclaration::semantic3(Scope *sc) * e.g. * class C { int x; static assert(is(typeof({ this.x = 1; }))); } * - * To properly accept it, mark these lambdas as member functions - - * isThis() returns true and isNested() returns false. + * To properly accept it, mark these lambdas as member functions. */ if (FuncLiteralDeclaration *fld = isFuncLiteralDeclaration()) { @@ -1510,7 +1509,6 @@ void FuncDeclaration::semantic3(Scope *sc) if (fld->tok != TOKfunction) fld->tok = TOKdelegate; } - assert(!isNested()); } } |