Created
November 30, 2017 19:08
-
-
Save alexcheng1982/79841046a280e714368a30738dca8d2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package calculator | |
expect fun log(msg: String) | |
object Calculator { | |
fun add(x: Int, y: Int): Int { | |
log("add -> $x $y") | |
return x + y | |
} | |
fun subtract(x: Int, y: Int): Int { | |
log("subtract -> $x $y") | |
return x - y | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment