[Issue 20077] Bogus 'need this' for lambda used inside struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 19 17:04:50 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20077
Luís Ferreira <lsferreira169 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lsferreira169 at gmail.com
--- Comment #1 from Luís Ferreira <lsferreira169 at gmail.com> ---
This also happens on accessing static fields on a struct.
auto foobar(alias func)(string val)
{
return func(val);
}
struct S {
static immutable foo = "foo";
static immutable bar = foobar!((v) => v[0])(S.foo);
}
--
More information about the Digitalmars-d-bugs
mailing list