FIR: Update integer literal-related tests

They started failing once we began reporting diagnostics from completion

^KT-46419 Relates
This commit is contained in:
Denis.Zharkov
2021-04-27 13:22:36 +03:00
committed by teamcityserver
parent 42d387925d
commit cd401b5b8a
18 changed files with 83 additions and 44 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
var invokeOrder: String = ""
fun test(x: Double = { invokeOrder += "x"; 1.0 }(), a: String, y: Long = { invokeOrder += "y"; 1 }(), b: String): String {
fun test(x: Double = { invokeOrder += "x"; 1.0 }(), a: String, y: Long = { invokeOrder += "y"; 1L }(), b: String): String {
return "" + x.toInt() + a + b + y;
}
@@ -10,4 +10,4 @@ fun box(): String {
if (invokeOrder != "KOxy" || funResult != "1OK1") return "fail: $invokeOrder != KOxy or $funResult != 1OK1"
return "OK"
}
}