Created
November 2, 2015 15:54
-
-
Save beyondeye/3f98471296ac57b70269 to your computer and use it in GitHub Desktop.
possible bug with let in kotlin 1.0 beta
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
fun thisFunctionThrows() { | |
val a="aa" | |
a.let { | |
if(a!="aa") //<---------------- | |
throw IllegalArgumentException() | |
} | |
} | |
fun thisFunctionDoesNotThrows() { | |
val a="aa" | |
a.let { | |
if(a!="aa") | |
{ //<---------------- | |
throw IllegalArgumentException() | |
} //<---------------- | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment