This was weird, though now I get it. scala> 1 << 32 val res3: Int = 1 scala> (1 << 24) << 8 val res4: Int = 0