CreateExpect: shouldn't generate expect declaration from actual function with default implementation from interface
#KT-32737 Fixed
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect interface My
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect interface My
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: "The function declaration shouldn't have a default implementation"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual interface My {
|
||||
actual fun <caret>foo(param: String) = param.length
|
||||
}
|
||||
idea/testData/multiModuleQuickFix/createExpect/functionWithImplementationInInterface/jvm/My.kt.after
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: "The function declaration shouldn't have a default implementation"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual interface My {
|
||||
actual fun <caret>foo(param: String) = param.length
|
||||
}
|
||||
Reference in New Issue
Block a user