FIR IDE: run FIR highlighting test on all test data

Similarly to FIR diagnostic tests. This commit enable all available test
data and check the reported error messages by FIR. This helps identify
some issues in formatting of FIR diagnostics.

The changes on the test file are mechanically generated. Failed tests
are disabled with `// IGNORE_FIR` and are re-enabled in the second
commit.
This commit is contained in:
Tianyu Geng
2021-03-16 16:55:07 -07:00
committed by Dmitriy Novozhilov
parent 6592407492
commit f38c0cf348
158 changed files with 2802 additions and 130 deletions
@@ -0,0 +1,8 @@
fun call() {
val list : String? = "sdfknsdkfm"
"x" <error descr="[UNSAFE_OPERATOR_CALL] Operator call corresponds to a dot-qualified call 'R|<local>/list|.contains(String(x))' which is not allowed on a nullable receiver 'R|<local>/list|'. ">in</error> list
"x" <error descr="[UNSAFE_OPERATOR_CALL] Operator call corresponds to a dot-qualified call 'R|<local>/list|.contains(String(x))' which is not allowed on a nullable receiver 'R|<local>/list|'. ">!in</error> list
}
operator fun CharSequence.contains(other: CharSequence, ignoreCase: Boolean = false): Boolean = true