Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created September 20, 2022 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s1monw1/9642310e725f7ce190269b2feb4889da to your computer and use it in GitHub Desktop.
Save s1monw1/9642310e725f7ce190269b2feb4889da to your computer and use it in GitHub Desktop.
inline class WrappedInt(val value: Int)
fun take(w: WrappedInt?) {
if (w != null) println(w.value)
}
fun main() {
take(WrappedInt(5))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment