KT-753 shift operations have second arg Int

This commit is contained in:
Alex Tkachman
2011-12-05 17:13:10 +02:00
parent 91549ed359
commit b253529e27
3 changed files with 25 additions and 4 deletions
@@ -0,0 +1,11 @@
namespace bitwise_demo
fun Long?.shl(bits : Int?) : Long = this.sure().shl(bits.sure())
fun box() : String {
val x : Long? = 10
val y : Int? = 12
System.out?.println(x.shl(y))
return "OK"
}