Create from Usage: Do not add bodies to expect class members

#KT-21122 Fixed
This commit is contained in:
Alexey Sedunov
2017-11-20 12:49:49 +03:00
parent 063b4b6c18
commit 820ade41ed
14 changed files with 83 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// "Create member property 'Foo.foo'" "true"
// ERROR: Unresolved reference: foo
expect class Foo
fun test(f: Foo) {
takeInt(f.<caret>foo)
}
fun takeInt(n: Int) {
}

View File

@@ -0,0 +1,14 @@
// "Create member property 'Foo.foo'" "true"
// ERROR: Unresolved reference: foo
expect class Foo {
val foo: Int
}
fun test(f: Foo) {
takeInt(f.foo)
}
fun takeInt(n: Int) {
}