Last active
November 9, 2020 21:57
-
-
Save SilleBille/e0b7e80b0c08cef82b91e5cef815e46d 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
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