namespace implicitCast {
public class BBParameter<T> {
public static implicit operator BBParameter<T>(T value) {
return new BBParameter<T>();
}
}
}
using implicitCast;
namespace implCast {
public class TestMe {
private BBParameter<float> test = 1; // error here - int can't cast to float
}
}