The non-generic type 'Maybe' cannot be used with type arguments
public static class Maybe
{
public static Maybe<T> ToMaybe<T>(this T value)
{
return new Maybe<T>(value);
}
public static Maybe<T> Empty<T>()
{
return new Maybe<T>();
}
}
yields 'The non-generic type 'Maybe' cannot be used with type arguments' even though System.Collections.Generic is referenced in Query Properties. What am I doing wrong ? Implementation of Maybe has been omitted - it works.
Comments
#define NONEST