KT-65897: add exporting of kotlin constructors as Swift constructors #KT-65897 fixed

Merge-request: KT-MR-14734
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2024-03-14 12:21:39 +00:00
committed by Space Team
parent bbcc5c9aed
commit fcc4470b74
18 changed files with 544 additions and 19 deletions
@@ -1,5 +1,9 @@
public class ClassWithNonPublicConstructor internal constructor(public val a: Int)
class Foo {
class Foo (a: Int) {
constructor(f: Float) : this(f.toInt())
private constructor(d: Double) : this(d.toInt())
class INSIDE_CLASS {
fun my_func(): Boolean = TODO()
@@ -29,4 +29,4 @@ abstract class ABSTRACT_CLASS
sealed class SEALED {
object O : SEALED()
}
}