a910627357
tests: sum-test: emproved test sum of int with various types of second argument (byte, short and etc) tests: hello2 minor fix in test
8 lines
245 B
Kotlin
8 lines
245 B
Kotlin
fun sumIB(a:Int, b:Byte ) = a + b
|
|
fun sumIS(a:Int, b:Short ) = a + b
|
|
fun sumII(a:Int, b:Int ) = a + b
|
|
fun sumIL(a:Int, b:Long ) = a + b
|
|
fun sumIF(a:Int, b:Float ) = a + b
|
|
fun sumID(a:Int, b:Double) = a + b
|
|
|
|
fun modID(a:Int, b:Double) = a % b |