Issue with casting types
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 17 10:21:28 PDT 2016
On 5/17/16 10:19 AM, Thorsten Sommer wrote:
> On Tuesday, 17 May 2016 at 13:13:54 UTC, Steven Schveighoffer wrote:
>> On 5/17/16 8:59 AM, Steven Schveighoffer wrote:
>>> I think you need to avoid it for now. Please file an issue.
>>
>> I see from ag0aep6g, that there is already an issue. I updated it.
>>
>
> Thanks ag0aep6g and Steve for the fast help :) The D community is great :)
Someone identified a workaround in the bug report:
Object obj = b1;
auto a2 = cast(A)obj;
Very ugly, but it should work.
-Steve
More information about the Digitalmars-d-learn
mailing list