https://issues.dlang.org/show_bug.cgi?id=24334
--- Comment #6 from Nick Treleaven ---
> Or perhaps the compiler test suite should cover basic aspects of the feature.
It did by the time the spec mentioned named arguments.
--
https://issues.dlang.org/show_bug.cgi?id=24334
--- Comment #5 from Jim Balter ---
> it should perhaps have a warning about stability
Or perhaps the compiler test suite should cover basic aspects of the feature.
--
https://issues.dlang.org/show_bug.cgi?id=24334
--- Comment #4 from Nick Treleaven ---
2.103.1 to 2.104.2: Success with output: a=1 b=99 c=3
Since 2.105.3: Success with output: a=1 b=2 c=99
--
https://issues.dlang.org/show_bug.cgi?id=24334
Dennis changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=24334
Nick Treleaven changed:
What|Removed |Added
CC||n...@geany.org
--- Comment #2 from Nick Tre
https://issues.dlang.org/show_bug.cgi?id=24334
--- Comment #1 from Jim Balter ---
P.S. The default constructor works correctly:
struct Foo
{
int a, b = 2, c = 3;
}
void main()
{
auto foo = Foo(1, c: 99);
imported!"std.stdio".writefln!"a=%s b=%s c=%s"(foo.a, foo.b, foo.c);
}
output: a=1