// error: integer number too large // val i = 12345678901234567890 // type mismatch // val b1: Byte = 128 val b2: Byte = 127 println(b2)
ByteとかShortとかはtype mismatchになるのに、Intはinteger number too largeなのね。
Programming Scala: Scalability = Functional Programming + Objects
- 作者: Dean Wampler,Alex Payne
- 出版社/メーカー: O'Reilly Media
- 発売日: 2014/12/03
- メディア: Kindle版
- この商品を含むブログを見る