[Issue 22283] -preview=in -inline leads to strange error inside object.d

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 7 05:50:31 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22283

--- Comment #2 from Tejas_Garhewal <scienticman at gmail.com> ---
(In reply to Tejas_Garhewal from comment #1)
> (In reply to Temtaime from comment #0)
> > 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)`
> 
> Well, it's not working for me even when I remove preview=in
> 

Oh, and -inline makes no difference for me.

--


More information about the Digitalmars-d-bugs mailing list