Fix deprecations in testData: js semantics.

This commit is contained in:
Ilya Gorbunov
2015-09-15 20:19:57 +03:00
parent 92e66b0d81
commit 0e3e33e5c1
46 changed files with 119 additions and 121 deletions
@@ -5,6 +5,6 @@ fun main(args: Array<String>) {
fun getStringLength(obj: Any): Int? {
if (obj is String)
return obj.length // no cast to String is needed
return obj.length() // no cast to String is needed
return null
}