[Issue 4818] Taking address of shared member function -> unshared delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 16 00:18:16 PDT 2011


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies at gmail.com> 2011-06-16 00:13:35 PDT ---
With dmd 2.053 this prints:

testx.d(9): Error: cannot implicitly convert expression (&foo.bar) of type void
delegate() shared to shared(void delegate())

Which shows the delegate is being typed correctly.

shared(void delegate()) is not the same type as shared(void delegate() shared)

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