Skip to content

Instantly share code, notes, and snippets.

@ngsw-taro
Created May 19, 2012 08:10
Show Gist options
  • Save ngsw-taro/2730038 to your computer and use it in GitHub Desktop.
Save ngsw-taro/2730038 to your computer and use it in GitHub Desktop.
Kotlin's Bug?
fun main(args : Array<String>) {
val a = arrayList(1)
val b = a + a // OK
val c = a + arrayList(1) // Compilation error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment