← Back to index
|
Original Bugzilla link
Bug 18566 – const on method of nested data type is not applied to variables in context
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-06T22:20:53Z
Last change time
2024-12-13T18:57:40Z
Assigned to
No Owner
Creator
timon.gehr
Moved to GitHub: dmd#17848 →
Comments
Comment #0
by timon.gehr — 2018-03-06T22:20:53Z
void main(){ int i = 0; struct S{ int *fun()const pure{ return &i; // compiles, but shouldn't } } } The type of i within "fun" should be "const(int)".
Comment #1
by robert.schadek — 2024-12-13T18:57:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17848
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB