[Issue 9490] 'this' is not found when array expression is in parentheses

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 23 01:09:40 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=9490

--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
3rd test case from 9185:

---
struct S { int i; }
struct S1 { S s; }
void f(int) { }

void main()
{
    S1 s1;
    f(s1.s.tupleof); // OK
    f((s1.s).tupleof); // Error: need 'this' to access member s
}
---

--


More information about the Digitalmars-d-bugs mailing list