Skip to content

Instantly share code, notes, and snippets.

@gakuzzzz
Created October 28, 2018 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gakuzzzz/63b49507053df9ec1380fe4aebf0f262 to your computer and use it in GitHub Desktop.
Save gakuzzzz/63b49507053df9ec1380fe4aebf0f262 to your computer and use it in GitHub Desktop.
Byte Int
scala> val b1: Byte = 127
b1: Byte = 127

scala> val b2: Byte = 128
<console>:7: error: type mismatch;
 found   : Int(128)
 required: Byte
       val b2: Byte = 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment