Minor: Add tests for KT-13759
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtTypeAlias
|
||||
// OPTIONS: usages
|
||||
object OOO
|
||||
typealias <caret>Alias = OOO
|
||||
|
||||
fun f() {
|
||||
Alias
|
||||
val a: Alias
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Local variable declaration 8 val a: Alias
|
||||
Unclassified usage 7 Alias
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
object OOO
|
||||
typealias AliasNew = OOO
|
||||
|
||||
fun f() {
|
||||
AliasNew
|
||||
val a: AliasNew
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
object OOO
|
||||
typealias /*rename*/Alias = OOO
|
||||
|
||||
fun f() {
|
||||
Alias
|
||||
val a: Alias
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "AliasNew",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
object OOO
|
||||
typealias AliasNew = OOO
|
||||
|
||||
fun f() {
|
||||
AliasNew
|
||||
val a: AliasNew
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
object OOO
|
||||
typealias Alias = OOO
|
||||
|
||||
fun f() {
|
||||
/*rename*/Alias
|
||||
val a: Alias
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "AliasNew",
|
||||
"byRef": "true",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user