CreateExpect: should prefer type aliases
#KT-32571 Fixed
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
expect class My {
|
||||
fun foo(): Int
|
||||
val some: Double
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import kotlin.Double as MyDouble
|
||||
typealias MyInt = Int
|
||||
|
||||
actual class <caret>My {
|
||||
actual fun foo(): MyInt = 42
|
||||
fun foo(): MyInt = 42
|
||||
|
||||
actual val some: MyDouble = 4.0
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
These declarations cannot be transformed:
|
||||
fun foo() = 42
|
||||
Reference in New Issue
Block a user