Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created January 19, 2015 05:18
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 shigemk2/f6174315cd2c10883eb4 to your computer and use it in GitHub Desktop.
Save shigemk2/f6174315cd2c10883eb4 to your computer and use it in GitHub Desktop.
println(1)
println(1d)
println(1f)
println(1000L)
val ab = 0: Byte
println(ab)
val ai = 0: Int
println(ai)
val as = 0: Short
println(as)
val ad = 0: Double
println(ad)
val af = 0: Float
println(af)
val ab1 = 0:Byte
println(ab1)
val aby:Byte = 0
println(aby)
val ain:Int = 0
println(ain)
println(0x20)
println(0x20L)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment