[FIR] Prohibit class literals with empty left-hand side
^KT-59165 Fixed
This commit is contained in:
committed by
Space Team
parent
d748fe7696
commit
713c2136cc
Vendored
-17
@@ -1,17 +0,0 @@
|
||||
fun regular() {
|
||||
::class
|
||||
|
||||
with(Any()) {
|
||||
::class
|
||||
}
|
||||
}
|
||||
|
||||
fun Any.extension() {
|
||||
::class
|
||||
}
|
||||
|
||||
class A {
|
||||
fun member() {
|
||||
::class
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun regular() {
|
||||
<!UNSUPPORTED_CLASS_LITERALS_WITH_EMPTY_LHS!>::class<!>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user