Relinking spec tests

This commit is contained in:
victor.petukhov
2019-08-12 12:06:17 +03:00
parent 8465d690f1
commit d8e5b068d5
590 changed files with 3720 additions and 10085 deletions
@@ -149,13 +149,12 @@ fun case_12(z: Any?) {
/*
* TESTCASE NUMBER: 13
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-30927
*/
fun case_13(z: Any?) {
val y = z.run {
if (this is ClassLevel6)
return@run <!TYPE_MISMATCH!>this<!>
return@run <!DEBUG_INFO_SMARTCAST!>this<!>
this as ClassLevel3
}
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel3")!>y<!>
@@ -200,14 +199,13 @@ fun case_16(z: Any?) {
/*
* TESTCASE NUMBER: 17
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-30927
*/
fun case_17(z: Any?) {
val y = z.run {
when (this) {
is Class? -> <!DEBUG_INFO_SMARTCAST!>this<!>!!
is Class -> return@run <!TYPE_MISMATCH!>this<!>
is Class -> return@run <!DEBUG_INFO_SMARTCAST!>this<!>
is Float -> Class()
else -> return@run Class()
}
@@ -218,13 +216,12 @@ fun case_17(z: Any?) {
/*
* TESTCASE NUMBER: 18
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-30927
*/
fun case_18(z: Any?) {
val y = z.run {
this as Int
<!TYPE_MISMATCH!>this<!>
<!DEBUG_INFO_SMARTCAST!>this<!>
}
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>y<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>y<!>.inv()
@@ -242,13 +239,12 @@ fun case_19(z: Any?) {
/*
* TESTCASE NUMBER: 20
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-30927
*/
fun case_20(z: Any?) {
val y = z.run {
this!!
<!TYPE_MISMATCH!>this<!>
<!DEBUG_INFO_SMARTCAST!>this<!>
}
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>y<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>y<!>.equals(10)
@@ -338,13 +334,12 @@ fun case_27(z: Any?) {
/*
* TESTCASE NUMBER: 28
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-30927
*/
fun case_28(z: Any?) {
val y = z.run {
if (this == null) throw IllegalStateException()
<!TYPE_MISMATCH!>this<!>
<!DEBUG_INFO_SMARTCAST!>this<!>
}
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>y<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>y<!>.equals(10)