mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
Create actual: put top-level actual declarations in the same file
When multiple expect declarations are in the same file, and some of them already have actual declarations for this platform, then "Create actual fix" put other declarations into the same file with existing actual declarations So #KT-17058 Fixed So #KT-21082 Fixed
This commit is contained in:
5
idea/testData/multiModuleQuickFix/functionSameFile/header/header.kt
vendored
Normal file
5
idea/testData/multiModuleQuickFix/functionSameFile/header/header.kt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// "Create actual function for platform JVM" "true"
|
||||
|
||||
expect fun bar()
|
||||
|
||||
expect fun <caret>foo(arg: Int): String
|
||||
5
idea/testData/multiModuleQuickFix/functionSameFile/header/header.kt.after
vendored
Normal file
5
idea/testData/multiModuleQuickFix/functionSameFile/header/header.kt.after
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// "Create actual function for platform JVM" "true"
|
||||
|
||||
expect fun bar()
|
||||
|
||||
expect fun foo(arg: Int): String
|
||||
3
idea/testData/multiModuleQuickFix/functionSameFile/jvm/foo.kt
vendored
Normal file
3
idea/testData/multiModuleQuickFix/functionSameFile/jvm/foo.kt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// foo: to be implemented
|
||||
|
||||
actual fun bar() {}
|
||||
6
idea/testData/multiModuleQuickFix/functionSameFile/jvm/foo.kt.after
vendored
Normal file
6
idea/testData/multiModuleQuickFix/functionSameFile/jvm/foo.kt.after
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
// foo: to be implemented
|
||||
|
||||
actual fun bar() {}
|
||||
actual fun foo(arg: Int): String {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
Reference in New Issue
Block a user