Get rid of reduntant jvm parts in tests

This commit is contained in:
Mikhael Bogdanov
2018-12-21 13:34:40 +01:00
parent f59b6a350f
commit d1efac617d
10 changed files with 22 additions and 34 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
open class Base(val bar: String)
class Foo(bar: String) : Base(bar) {
fun something() = (bar as java.lang.String).toUpperCase()
fun something() = bar.toUpperCase()
}
fun box() = Foo("ok").something()