Create expected quick-fix: check types accessibility before creation
Related to KT-27075
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
expect class SomeString
|
||||
// It would be great to have SomeString in foo() below, but it's problematic
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expect class SomeString
|
||||
// It would be great to have SomeString in foo() below, but it's problematic
|
||||
expect fun foo(): String
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual typealias SomeString = String
|
||||
|
||||
actual fun <caret>foo(): SomeString = ""
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual typealias SomeString = String
|
||||
|
||||
actual fun foo(): SomeString = ""
|
||||
Reference in New Issue
Block a user