[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


          Issue ID: 22283
           Summary: -preview=in -inline leads strange error inside
           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()
    catch(Throwable e)

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:
`object.Throwable.toString(scope void delegate(in char[]) sink)`


More information about the Digitalmars-d-bugs mailing list