blob: 6c9d58ff96c2ad5ab61af8914b3450c24ad49fe3 [file]
// WITH_STDLIB
object Test {
fun foo(): String = "foo " + this
fun bar(): String = "bar $this"
fun baz(): String = "baz " + this.toString()
}
fun box(): String {
if (!Test.foo().startsWith("foo ")) return "Fail ${Test.foo()}"
if (!Test.bar().startsWith("bar ")) return "Fail ${Test.bar()}"
if (!Test.baz().startsWith("baz ")) return "Fail ${Test.baz()}"
return "OK"
}