FIR: implement diagnostics for qualifier as stand-alone expression case

This commit is contained in:
Mikhail Glukhikh
2021-04-30 12:25:52 +03:00
parent 84ccf7bbb1
commit 80a449862e
38 changed files with 190 additions and 58 deletions
@@ -3,7 +3,7 @@
// TESTCASE NUMBER: 1
fun case_1(value_1: Any): String {
when (value_1) {
EmptyClass -> return ""
<!NO_COMPANION_OBJECT!>EmptyClass<!> -> return ""
}
return ""
@@ -12,7 +12,7 @@ fun case_1(value_1: Any): String {
// TESTCASE NUMBER: 2
fun case_2(value_1: Any): String {
when (value_1) {
Any -> return ""
<!NO_COMPANION_OBJECT!>Any<!> -> return ""
}
return ""
@@ -21,7 +21,7 @@ fun case_2(value_1: Any): String {
// TESTCASE NUMBER: 3
fun case_3(value_1: Any): String {
when (value_1) {
Nothing -> return ""
<!NO_COMPANION_OBJECT!>Nothing<!> -> return ""
}
return ""