mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
14 lines
395 B
D
14 lines
395 B
D
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().
|
|
*/
|
|
}
|
|
}
|