Thread overview
[Issue 3733] New: call overloaded method by shared
Jan 22, 2010
Takuya Kurosawa
Jul 03, 2011
yebblies
[Issue 3733] Overloading on 'this' modifiers fails with implicit 'this'
Jul 03, 2011
yebblies
Nov 25, 2011
Kenji Hara
Jan 12, 2012
Kenji Hara
Oct 07, 2012
yebblies
January 22, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3733

           Summary: call overloaded method by shared
           Product: D
           Version: 2.039
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: d_lang@ku6.jp


--- Comment #0 from Takuya Kurosawa <d_lang@ku6.jp> 2010-01-22 02:44:08 PST ---
Sample code:
--------
class SampleClass
{
    void foo() {}

    shared
    void foo() {}

    void bar()
    {
        foo();
    }
}
--------

Result with dmd 2.039:
--------
test.d(10): Error: function test.SampleClass.foo called with argument types:
        (())
matches both:
        test.SampleClass.foo()
and:
        test.SampleClass.foo()
--------

I think that no shared 'foo' method should be called in 'bar' method.


If 'foo' method is called from 'this' pointer explicitly, dmd compile successfully.
--------
void bar()
{
    this.foo();
}
--------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 03, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3733


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webby@beardmouse.org.uk


--- Comment #1 from yebblies <yebblies@gmail.com> 2011-07-03 15:09:36 EST ---
*** Issue 4392 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 03, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3733


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |yebblies@gmail.com
           Platform|x86                         |All
            Summary|call overloaded method by   |Overloading on 'this'
                   |shared                      |modifiers fails with
                   |                            |implicit 'this'
         OS/Version|Windows                     |All


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-07-03 15:11:37 EST ---
This applies to any this modifier, not just shared.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 25, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3733


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2011-11-25 09:29:19 PST ---
https://github.com/D-Programming-Language/dmd/pull/534

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3733


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@benjamin-thaut.de


--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-11 23:07:19 PST ---
*** Issue 7276 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3733


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #5 from yebblies <yebblies@gmail.com> 2012-10-08 05:59:10 EST ---
https://github.com/D-Programming-Language/dmd/commit/9aea891987a8c58b3c02c6d32f28a12c579400f3

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