[Issue 7758] Mixin error: No size yet for forward reference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 22 00:13:39 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=7758
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-22 00:13:38 PST ---
With 2.064, the code:
string test(alias member)() { return ""; }
struct S
{
int i;
mixin(test!i());
}
Prints:
test.d(1): Error: function test.S.test!(i).test need 'this' to access member
test
test.d(5): called from here: test()
---
This exactly is same behavior with:
struct S
{
string foo() { return ""; }
mixin(foo()); // call member function 'foo' without valid 'this'
}
Prints:
test.d(3): Error: function test.S.foo need 'this' to access member foo
test.d(4): called from here: foo()
---
Therefore the original issue is already fixed.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list