Steven Schveighoffer:
> Does this compile:
> 
> class C {}
> 
> ubyte foo(C n)
> {
>    return true ? 255 : n;
> }
> 
> (don't have the latest compiler installed yet, so I couldn't check it  
> myself)

It doesn't compile (DMD v2.031):
temp.d(5): Error: incompatible types for ((255) ? (n)): 'int' and 'temp.C'

Bye,
bearophile

Reply via email to