Summary: @property doesnt work with delegate return
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Bruno Medeiros <> 2010-05-13 
07:06:22 PDT ---
This code does not compile, DMD 2.045:

alias void delegate() dgtype;

class Foo {
    @property void delegate() foo3() {
        return { writeln("Delegate RUN"); };


---- Gives error:

src\implicitFunctionCall.d(8): Error: cannot implicitly convert expression
(__dgliteral1) of type void delegate() to void delegate()

If the return type is changed to the dgtype alias, it works.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to