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 function 'Foo.foo'" "true"
// ERROR: Unresolved reference: foo
expect class Foo
fun test(f: Foo) {
f.<caret>foo("a", 1)
}

View File

@@ -0,0 +1,10 @@
// "Create member function 'Foo.foo'" "true"
// ERROR: Unresolved reference: foo
expect class Foo {
fun foo(s: String, i: Int)
}
fun test(f: Foo) {
f.foo("a", 1)
}