Deprecate parseInt and parseFloat. Replace deprecated usages in tests.

#KT-4497
This commit is contained in:
Ilya Gorbunov
2017-01-23 18:15:30 +03:00
parent 4e5e14c9a0
commit 4018d10bf6
8 changed files with 10 additions and 17 deletions
+1 -1
View File
@@ -140,6 +140,6 @@ external object Number {
fun parseInt(str: String): Int = noImpl
}
inline fun String.toInt2(): Int = parseInt(this)
inline fun String.toInt2(): Int = this.toInt()
class RuntimeExceptionWithValue(val value: String = "") : RuntimeException()