Create expected quick-fix: check types accessibility before creation

Related to KT-27075
This commit is contained in:
Mikhail Glukhikh
2018-11-20 17:23:15 +03:00
parent f31428257d
commit 8b7c7dbe25
28 changed files with 253 additions and 24 deletions
@@ -0,0 +1 @@
// To be implemented
@@ -0,0 +1,7 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: Cannot generate expected function: Type Some is not accessible from common code
// DISABLE-ERRORS
class Some
actual fun <caret>foo(some: Some) {}
@@ -0,0 +1,7 @@
// "Create expected function in common module testModule_Common" "true"
// SHOULD_FAIL_WITH: Cannot generate expected function: Type Some is not accessible from common code
// DISABLE-ERRORS
class Some
actual fun foo(some: Some) {}