RemoveRedundantQualifierNameInspection: support class literal expression
#KT-32046 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
|
||||
fun bar() {
|
||||
foo<caret>.Foo::class
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
|
||||
fun bar() {
|
||||
Foo::class
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
|
||||
fun bar() {
|
||||
foo<caret>.Foo::class.java
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
|
||||
fun bar() {
|
||||
Foo::class.java
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
val Bwd = 42
|
||||
|
||||
class BBD
|
||||
|
||||
val a = foo.www.ddd<caret>.Check.BBD.Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
val Bwd = 42
|
||||
|
||||
class BBD
|
||||
|
||||
val a = Check.BBD.Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
fun Bwd(): String = ""
|
||||
val a = foo.www.ddd.<caret>Check.BBD.Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
fun Bwd(): String = ""
|
||||
val a = Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
class Bwd
|
||||
val a = foo.www.ddd.<caret>Check.BBD.Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
package foo.www.ddd
|
||||
|
||||
class Check {
|
||||
class BBD {
|
||||
class Bwd {
|
||||
fun dad() {
|
||||
class Bwd
|
||||
val a = BBD.Bwd::class.java.annotatedInterfaces.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user