summaryrefslogtreecommitdiff
path: root/test/files/pos/t8462.scala
blob: 6946cf8e5e03e29b2528b1541e71502c0cb16ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
trait ConstantOps {
  def exprs = (
    1   << 2L : Int,  // was: error: type mismatch; found   : Long(4L)
    64  >> 2L : Int,  // was: error: type mismatch; found   : Long(4L)
    64 >>> 2L : Int,  // was: error: type mismatch; found   : Long(4L)
    'a' << 2L : Int,
    'a' >> 2L : Int,
    'a'>>> 2L : Int
  )
}