Bug 21558 – UFCS doesn't play nice with hijacked default properties

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2021-01-18T14:23:34Z
Last change time
2024-12-13T19:14:04Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu
Moved to GitHub: dmd#19855 →

Comments

Comment #0 by rumbu — 2021-01-18T14:23:34Z
int sizeof(int a) { return 42; } int nameof(int a) { return 99; } int a; int x = sizeof(a) //42 int y = a.sizeof() //Error: function expected before () ... int z = a.sizeof //4, but dangerous, maybe the user expects 42 int xx = nameof(a) //99 int yy = a.nameof() //Error: function expected before () ... int zz = a.nameof //Error: cannot implicitly ... string to int
Comment #1 by robert.schadek — 2024-12-13T19:14:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19855 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB