Convert member to extension: Support members of header/impl classes

#KT-18883 Fixed
This commit is contained in:
Alexey Sedunov
2017-08-07 13:46:29 +03:00
parent 4dbde03c3b
commit cd5c382179
30 changed files with 285 additions and 60 deletions
@@ -0,0 +1,5 @@
// "Convert member to extension" "true"
header class Foo {
val <caret>foo: Int
}
@@ -0,0 +1,6 @@
// "Convert member to extension" "true"
header class Foo {
}
header val Foo.foo: Int
@@ -0,0 +1,3 @@
impl class Foo {
impl val foo get() = 1
}
@@ -0,0 +1,4 @@
impl class Foo {
}
impl val Foo.foo get() = 1
@@ -0,0 +1,3 @@
impl class Foo {
impl val foo get() = 2
}
@@ -0,0 +1,4 @@
impl class Foo {
}
impl val Foo.foo get() = 2