Created
September 20, 2022 22:47
-
-
Save s1monw1/9642310e725f7ce190269b2feb4889da to your computer and use it in GitHub Desktop.
This file contains 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
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