[Issue 10418] bad error message: "not a property"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 19 16:52:12 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-19 16:52:10 PDT ---
(In reply to comment #0)
> ===
> struct S {
>         @property void number(int a) { }
> }
> 
> void main() {
>         S s;
>         s.number = "10";
> }
> ===
> 
> $ dmd test22
> test22.d(7): Error: not a property s.number

Hmm in git-head it's:

test.d(12): Error: function test.S.number (int a) is not callable using
argument types (string)

Looks like it's fixed.

-- 
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