More tests for KT-28997, fix isLocal for anonymous object in script
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtObjectDeclaration
|
||||
// OPTIONS: usages
|
||||
val x = <caret>object: Any() {
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtObjectDeclaration
|
||||
// OPTIONS: usages
|
||||
fun foo() {
|
||||
val x = <caret>object : Any() {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtClass
|
||||
// OPTIONS: usages, constructorUsages
|
||||
fun foo() {
|
||||
class <caret>Local
|
||||
|
||||
val x = Local()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
New instance creation 6 val x = Local()
|
||||
Reference in New Issue
Block a user