Create actual: put top-level actual declarations in the same file
When multiple expect declarations are in the same file, and some of them already have actual declarations for this platform, then "Create actual fix" put other declarations into the same file with existing actual declarations So #KT-17058 Fixed So #KT-21082 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Create actual class for platform JS" "true"
|
||||
|
||||
expect sealed class Sealed
|
||||
|
||||
expect object Obj : Sealed
|
||||
|
||||
expect class <caret>Klass(x: Int) : Sealed
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create actual class for platform JS" "true"
|
||||
|
||||
expect sealed class Sealed
|
||||
|
||||
expect object Obj : Sealed
|
||||
|
||||
expect class Klass(x: Int) : Sealed
|
||||
@@ -0,0 +1,5 @@
|
||||
// Sealed: to be implemented
|
||||
|
||||
actual sealed class Sealed
|
||||
|
||||
actual object Obj : Sealed()
|
||||
@@ -0,0 +1,6 @@
|
||||
// Sealed: to be implemented
|
||||
|
||||
actual sealed class Sealed
|
||||
|
||||
actual object Obj : Sealed()
|
||||
actual class Klass actual constructor(x: Int) : Sealed
|
||||
Reference in New Issue
Block a user