https://d.puremagic.com/issues/show_bug.cgi?id=12339



--- Comment #2 from monarchdo...@gmail.com 2014-03-10 13:26:18 PDT ---
(In reply to comment #1)
> I think it does not work because struct contains pointer. If you comment out
> it, it will work.
>
> Note that dispite you alias to S type, S itself contains indirections.

I know, that was the point. I *wanted* a type were "const(S)" can't be
implicitly cast to "S"

The "issue" is that "const(S)" has an alias this to a function that produces an
"S", meaning (AFAIK) that according to alias this rules, that this conversion
should be considered.

I mean: Why would "alias this" be OK to get an "int", but doesn't work to get
an "S"?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to