Introduce Type Alias: Support callable references/class literals
#KT-14861 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// NAME: T
|
||||
class A {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
val a = <caret>A::bar
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// NAME: T
|
||||
class A {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
typealias T = A
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
val a = T::bar
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// NAME: T
|
||||
class A {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
val a = A::<caret>bar
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Refactoring can't be performed on the selected code element
|
||||
@@ -0,0 +1,9 @@
|
||||
// NAME: T
|
||||
class A {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
val a = <caret>A::class
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// NAME: T
|
||||
class A {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
typealias T = A
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
val a = T::class
|
||||
}
|
||||
Reference in New Issue
Block a user