Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 284 Bytes

2005.md

File metadata and controls

19 lines (13 loc) · 284 Bytes

2005

A word literal was negative. Words cannot be negative.

val neg = ~0w123
(**       ^^^^^^ negative word literal *)

To fix

Use a different type, like int, or remove the negative sign.

val negInt = ~123
val posWord = 0w123