blob: 704f35c9b940e956a9fe6b626db6410f4eed9e78 [file] [log] [blame]
void f(void delegate(int)) {}
class C
{
int i;
this()
{
f((a){});
/* (a){} is a template lambda, so FuncExp::semantic -> TemplateDeclaration::semantic
* will save the scope in TemplateDeclaration::scope with fieldinit. Later push/pop
* of the scope for template lambda body semantics will violate the assertion in Scope::pop().
*/
}
}