Extract diagnostics about class literals with empty LHS

^KT-59152
This commit is contained in:
Mikhail Zarechenskiy
2023-06-07 15:40:05 +02:00
committed by Space Team
parent 1153238fd7
commit 060f3fa7c4
10 changed files with 67 additions and 1 deletions
@@ -0,0 +1,17 @@
fun regular() {
::class
with(Any()) {
::class
}
}
fun Any.extension() {
::class
}
class A {
fun member() {
::class
}
}
@@ -0,0 +1,17 @@
fun regular() {
<!UNSUPPORTED_CLASS_LITERALS_WITH_EMPTY_LHS!>::class<!>
with(Any()) {
<!UNSUPPORTED_CLASS_LITERALS_WITH_EMPTY_LHS!>::class<!>
}
}
fun Any.extension() {
<!UNSUPPORTED_CLASS_LITERALS_WITH_EMPTY_LHS!>::class<!>
}
class A {
fun member() {
<!UNSUPPORTED_CLASS_LITERALS_WITH_EMPTY_LHS!>::class<!>
}
}