mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
25 lines
508 B
D
25 lines
508 B
D
/*
|
|
TEST_OUTPUT:
|
|
----
|
|
fail_compilation/issue15103.d(22): Error: found `(` when expecting `;` or `=`, did you mean `Foo foo = 42`?
|
|
fail_compilation/issue15103.d(23): Error: found `(` when expecting `;` or `=`, did you mean `Boo boo = 43`?
|
|
fail_compilation/issue15103.d(24): Error: found `(` when expecting `;` or `=`, did you mean `string y = "a string"`?
|
|
---
|
|
*/
|
|
|
|
struct Foo
|
|
{
|
|
this(int x) {}
|
|
}
|
|
|
|
class Boo
|
|
{
|
|
this(int x) {}
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
Foo foo(42);
|
|
Boo boo(43);
|
|
string y("a string");
|
|
}
|