this shouldn't work ``` fun main(args: Array<S...
# announcements
k
this shouldn't work
Copy code
fun main(args: Array<String>) {
    Foo().bar("hello ") //prints "hello world" but why?
}

interface IFoo {
    fun bar(a: String, b: String = "world")
}

class Foo : IFoo {
    override fun bar(a: String, b: String) = println(a + b)
}
but it does