digitalmars.D.bugs - [Issue 22283] New: -preview=in -inline leads strange error inside
- d-bugmail puremagic.com (31/31) Sep 06 2021 https://issues.dlang.org/show_bug.cgi?id=22283
https://issues.dlang.org/show_bug.cgi?id=22283 Issue ID: 22283 Summary: -preview=in -inline leads strange error inside object.d Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: blocker Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: temtaime gmail.com void main() { try { } catch(Throwable e) e.toString; } compile with -preview=in -inline: /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(2405): Error: none of the overloads of `toString` are callable using argument types `(void)`, candidates are: /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(2402): `object.Throwable.toString()` /dlang/dmd/linux/bin64/../../src/druntime/import/object.d(2415): `object.Throwable.toString(scope void delegate(in char[]) sink)` --
Sep 06 2021