Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 26, 2018 [Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18606 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com Hardware|x86_64 |All OS|Linux |All -- |
May 14, 2018 [Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18606 --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> --- (In reply to Vladimir Panteleev from comment #0) > Introduced in https://github.com/dlang/dmd/pull/5500 This is why I don't like 700 line PRs spread across 18 files :-( -- |
May 14, 2018 [Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18606 --- Comment #2 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> --- The commits are big too, but if it helped, I can bisect it down to the commit. -- |
December 21, 2018 [Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18606 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=16607 -- |
January 11, 2019 [Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18606 John Colvin <john.loughran.colvin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john.loughran.colvin@gmail. | |com --- Comment #3 from John Colvin <john.loughran.colvin@gmail.com> --- Related: struct S { string get(string key) { return key; } alias get this; } void main() { S[] a; auto b = a.dup; } /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4473): Error: mutable method onlineapp.S.get is not callable using a const object /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4473): Consider adding const or inout to onlineapp.S.get /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4460): Error: template instance `object._dup!(const(S), S)` error instantiating /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4424): instantiated from here: _trustedDup!(const(S), S) onlineapp.d(13): instantiated from here: dup!(S) and struct S { string get(string key) const { return key; } alias get this; } void main() { S[] a; auto b = a.dup; } /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4473): Error: function onlineapp.S.get(string key) const is not callable using argument types () const /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4473): missing argument for parameter #1: string key /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4460): Error: template instance `object._dup!(const(S), S)` error instantiating /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(4424): instantiated from here: _trustedDup!(const(S), S) onlineapp.d(13): instantiated from here: dup!(S) -- |
Copyright © 1999-2021 by the D Language Foundation