[Issue 6211] __traits (compile) return wrong result when the bug happen

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 24 19:08:47 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6211



--- Comment #2 from Lloyd Dupont <ld at galador.net> 2011-06-24 19:03:57 PDT ---
How does the template scope has anything to do with this bug?

In plain English I'm testing that the property can be set.
I.e. 
class Foo
{
 @property public Foo Subfoo() {}

 @property public Foo Subfoo2() {}
 @property public void Subfoo2(Foo f) {}
}

in the above class Subfoo can't be set, Subfoo2 can.
I'm testing it with
Foo f,
__traits(compile, f.Suboo = Foo.init)
__traits(compile, f.Suboo2 = Foo.init)

This seems to work erratically!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list