Bug 11514 – `inout` is incorrectly resolved as `const` if there is a default parameter

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-14T07:35:47Z
Last change time
2024-12-13T18:13:59Z
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#18713 →

Comments

Comment #0 by verylonglogin.reg — 2013-11-14T07:35:47Z
There should be no errors: --- inout(Object) f(inout(Object), inout int = 0) { return null; } static assert(is(typeof(f(Object.init)) == Object)); --- Error: static assert (is(const(Object) == Object)) is false ---
Comment #1 by robert.schadek — 2024-12-13T18:13:59Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18713 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB