How can i solve this error msg?
static public class Blah
{
public static T val<T>(this bool b, T v) { return b == true? v:0; }
}
error
Type of conditional expression cannot be determined because there is no implicit conversion between 'T' and 'int