We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code that accidentally calls the wrong method
interface Person { val displayName: String } object Hello { fun to(p: Person) { println("Hello ${p.displayName}!!") } } object Student { val displayName = "Student" } fun main(args: Array<String>) { //Should print "Hello Student!!" Hello.to(Student) }
This actually calls kotlin.to in the standard library.
kotlin.to
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example code that accidentally calls the wrong method
This actually calls
kotlin.to
in the standard library.The text was updated successfully, but these errors were encountered: