You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is preventing me from turning on fatal warnings, which is something I really want to do:
$ scala -Ywarn-numeric-widen
Welcome to Scala version 2.10.3 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_45).
Type in expressions to have them evaluated.
Type:help for more information.
scala>caseclassA(b: Short)
<console>:7:warning: implicit numeric widening
caseclassA(b: Short)
^
defined classA
scala>
The text was updated successfully, but these errors were encountered:
$ scala -Ywarn-numeric-widen
Welcome to Scala version 2.10.3 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_45).
Type in expressions to have them evaluated.
Type:help for more information.
scala>caseclassA(b: Short) { overridedefhashCode:Int=0 }
defined classA
scala>
The default hashCode doesn't seem to be bad, though:
The following is preventing me from turning on fatal warnings, which is something I really want to do:
The text was updated successfully, but these errors were encountered: