[FIR] Implement UNDERSCORE_IS_RESERVED, UNDERSCORE_USAGE_WITHOUT_BACKTICKS diagnostics (psi only)

This commit is contained in:
Ivan Kochurkin
2021-04-22 14:01:02 +03:00
committed by TeamCityServer
parent cc4adb798f
commit ea2d9f7c0c
30 changed files with 291 additions and 121 deletions
@@ -29,7 +29,7 @@ fun foo() {
}
} catch (_: Exception) {
`_`.stackTrace
val y1 = _
val y1 = <!UNDERSCORE_USAGE_WITHOUT_BACKTICKS!>_<!>
val y2 = (`_`)
}
try {
@@ -29,7 +29,7 @@ fun foo() {
}
} catch (_: Exception) {
`_`.stackTrace
val y1 = _
val y1 = <!UNDERSCORE_USAGE_WITHOUT_BACKTICKS!>_<!>
val y2 = (`_`)
}
try {