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,8 @@
// "Create member property 'Foo.foo'" "true"
// ERROR: Unresolved reference: foo
expect class Foo
fun test(f: Foo) {
f.<caret>foo = 1
}

View File

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

View File

@@ -0,0 +1 @@
actual class Foo

View File

@@ -0,0 +1 @@
actual class Foo