Bug 4858 – Cannot call synchronized method through super
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2010-09-13T01:05:00Z
Last change time
2015-12-09T09:45:01Z
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2010-09-13T01:05:04Z
Compiling this piece of code:
class Base
{
synchronized void func (string s) { }
}
class Foo : Base
{
synchronized void bar (string key) { super.func(key); }
}
Gives this error:
main.d(13): Error: function main.Base.func (string s) shared is not callable using argument types (string)
Comment #1 by lt.infiltrator — 2015-12-09T09:45:01Z