Create a class like the following:
class Test { int i = 5.0; }
Build it, you will be notified of a compiler error. Try to invoke the quick fix to insert a cast, it will end up doing nothing.
Log in to post a comment.