mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
365 B
D
15 lines
365 B
D
/*
|
|
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() {}
|