Skip to content

Instantly share code, notes, and snippets.

@DarkDimius
Created March 19, 2017 00:19
Show Gist options
  • Save DarkDimius/c490459911e04c9bab69851ef96ad505 to your computer and use it in GitHub Desktop.
Save DarkDimius/c490459911e04c9bab69851ef96ad505 to your computer and use it in GitHub Desktop.
object test {
final val s = false
if (s) { println("a")} // <-- will not be emmited in bytecode
final val s1: Boolean = false
if (s1) { println("b")} // <-- will be emmited in bytecode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment