Convert member to extension: Support members of header/impl classes
#KT-18883 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// "Convert member to extension" "true"
|
||||
|
||||
header class Foo {
|
||||
fun <caret>foo(n: Int)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Convert member to extension" "true"
|
||||
|
||||
header class Foo {
|
||||
}
|
||||
|
||||
header fun Foo.foo(n: Int)
|
||||
@@ -0,0 +1,5 @@
|
||||
impl class Foo {
|
||||
impl fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
impl class Foo {
|
||||
}
|
||||
|
||||
impl fun Foo.foo(n: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
impl class Foo {
|
||||
impl fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
impl class Foo {
|
||||
}
|
||||
|
||||
impl fun Foo.foo(n: Int) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user