mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Create from Usage: Do not add bodies to expect class members
#KT-21122 Fixed
This commit is contained in:
8
idea/testData/multiModuleQuickFix/createFunInExpectClass/header/header.kt
vendored
Normal file
8
idea/testData/multiModuleQuickFix/createFunInExpectClass/header/header.kt
vendored
Normal 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)
|
||||
}
|
||||
10
idea/testData/multiModuleQuickFix/createFunInExpectClass/header/header.kt.after
vendored
Normal file
10
idea/testData/multiModuleQuickFix/createFunInExpectClass/header/header.kt.after
vendored
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user