[Issue 22283] New: -preview=in -inline leads strange error inside object.d
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 6 15:35:08 UTC 2021
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 at puremagic.com
Reporter: temtaime at 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)`
--
More information about the Digitalmars-d-bugs
mailing list