blob: 826bd8cd7ec16093fd5e418bbf67c4933f10cc27 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice11153.d(11): Error: function declaration without return type. (Note that constructors are always named `this`)
fail_compilation/ice11153.d(11): Error: variable name expected after type `foo()`, not `{`
---
*/
struct S
{
foo(T)() {}
// Parser creates a TemplateDeclaration object with ident == NULL
}
void main() {}