Why doesn't this work in D2?

Ellery Newcomer ellery-newcomer at utulsa.edu
Sun Jun 27 10:22:56 PDT 2010


On 06/27/2010 12:18 PM, Jacob Carlborg wrote:
> Why doesn't the following code work in D2 (it works in D1)?
>
> void foo (T) (in T[] a, T b)
> {
>
> }
>
> void main ()
> {
> "asd".foo('s');
> }
>

"asd".foo(cast(immutable) 's');



More information about the Digitalmars-d-learn mailing list