CreateExpect: shouldn't generate expect declaration from actual function with default implementation from interface

#KT-32737 Fixed
This commit is contained in:
Dmitry Gridin
2019-10-02 10:16:45 +07:00
parent e9f8693a73
commit 847295bf1c
14 changed files with 86 additions and 0 deletions
@@ -0,0 +1,3 @@
// DISABLE-ERRORS
expect interface My
@@ -0,0 +1,3 @@
// DISABLE-ERRORS
expect interface My
@@ -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
}
@@ -0,0 +1,7 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: "The function declaration shouldn&#39;t have a default implementation"
// DISABLE-ERRORS
actual interface My {
actual fun <caret>foo(param: String) = param.length
}