Bug 14509 – Can't override Object methods in synchronized classes

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-04-27T02:11:09Z
Last change time
2024-12-07T13:35:14Z
Assigned to
No Owner
Creator
Dicebot
Moved to GitHub: dmd#17298 →

Comments

Comment #0 by public — 2015-04-27T02:11:09Z
=== synchronized class A { override equals_t opEquals(Object rhs) { return 0; } } === Error: function test.A.opEquals does not override any function, did you mean to override 'object.Object.opEquals'? There does not seem to be any way to override Object methods in synchronised classes as those become implicitly shared.
Comment #1 by robert.schadek — 2024-12-07T13:35:14Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17298 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB