added a test case for KT-2507

This commit is contained in:
James Strachan
2012-07-25 04:57:10 -04:00
parent ba9bf15bc3
commit eeb2e024ad
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,13 @@
package foo
class Foo(val name: String) {
public override fun toString(): String {
return "Foo($name)"
}
}
fun box() : String {
val a = Foo("James")
return a.toString()
}