Cleanup deprecated symbol usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-16 20:10:40 +03:00
parent eefbd72a64
commit 25c4453dc5
403 changed files with 933 additions and 921 deletions
@@ -44,7 +44,7 @@ abstract class Tag(val name: String) : Element() {
private fun renderAttributes(): String? {
val builder = StringBuilder()
for (a in attributes.keySet()) {
for (a in attributes.keys) {
builder.append(" $a=\"${attributes[a]}\"")
}
return builder.toString()
@@ -44,7 +44,7 @@ abstract class Tag(val name: String) : Element() {
private fun renderAttributes(): String? {
val builder = StringBuilder()
for (a in attributes.keySet()) {
for (a in attributes.keys) {
builder.append(" $a=\"${attributes[a]}\"")
}
return builder.toString()
@@ -7,7 +7,7 @@ package foo
fun test1(): Int {
val inlineX = Inline()
return inlineX.foo({ z: Int -> "" + z}, 25, { -> this.length() })
return inlineX.foo({ z: Int -> "" + z}, 25, { -> this.length })
}
fun box(): String {
@@ -64,7 +64,7 @@ fun test3(): Int {
})
return res
} catch (e: RuntimeException) {
return e.getMessage()?.toInt2()!!
return e.message?.toInt2()!!
}
}