Skip to content

Instantly share code, notes, and snippets.

@alexcheng1982
Created November 30, 2017 19:08
Show Gist options
  • Save alexcheng1982/79841046a280e714368a30738dca8d2d to your computer and use it in GitHub Desktop.
Save alexcheng1982/79841046a280e714368a30738dca8d2d to your computer and use it in GitHub Desktop.
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