http://d.puremagic.com/issues/show_bug.cgi?id=4353


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |clugd...@yahoo.com.au


--- Comment #1 from Don <clugd...@yahoo.com.au> 2010-12-08 05:09:58 PST ---
Actually this isn't a CTFE bug. The issue is implicit conversion of string
literals.
-------
void stride(const(char[]) s) {}
void stride(const(dchar[]) s) {}

void main(){
    string w = "hi";
    stride(w);  // ok
    stride("hi"[]); // ok
    stride("hi"); // fails
}
------

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

Reply via email to