Skip to content

Instantly share code, notes, and snippets.

@SilleBille
Last active November 9, 2020 21:57
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 SilleBille/e0b7e80b0c08cef82b91e5cef815e46d to your computer and use it in GitHub Desktop.
Save SilleBille/e0b7e80b0c08cef82b91e5cef815e46d to your computer and use it in GitHub Desktop.
package com.brewery.training.playground
class Test {
fun dummyMethod() {
println("dummy method")
}
}
fun main() {
val testArrays = arrayOf(Test(), "Hello", 10, 5, Test())
for (b in testArrays) {
println(b)
b.dummyMethod() // Error here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment