summaryrefslogtreecommitdiff
path: root/test/files/pos/t8462.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8462: Integral shift Long result type correctedSom Snytt2015-01-091-0/+11
Constant folding was incorrectly promoting to Long when the operand was Long, as with other binary ops, but the result type depends on the receiver. Per SLS 12.2.1. This fixes ((1 << 2L): Int) and the other shift ops and the other integral types.