Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
@TypeChecked test() { byte b = (short) 123 }
This code warns of "Possible loss of precision". However, the number is okay and there is no way to write a byte or short literal without a typecast.