## Compiler version 3.1.0 ## Minimized code ```Scala inline val myIntMask = 1 << 4 inline val myLongMask = myIntMask.toLong ``` ## Output ``` 2 |inline val myLongMask = myIntMask.toLong | ^^^^^^^^^^^^^^^^ | inline value must have a literal constant type ``` ## Expectation We should be able to constant fold `toInt`, `toLong`, `toDouble`, `toFloat`, `toByte` and `toShort`. This would also alow us to write `inline val`s with `Short` and `Byte` types as shown bellow ```Scala inline val myByteMask = 2.toByte ``` This is currently impossible as we do not possess a byte or short numerical postfix in the syntax.