fix: make sealed classes abstract inside d.ts files.
This commit is contained in:
+1
-1
@@ -356,7 +356,7 @@ class ExportModelGenerator(
|
|||||||
val exportedClass = ExportedClass(
|
val exportedClass = ExportedClass(
|
||||||
name = name,
|
name = name,
|
||||||
isInterface = klass.isInterface,
|
isInterface = klass.isInterface,
|
||||||
isAbstract = klass.modality == Modality.ABSTRACT,
|
isAbstract = klass.modality == Modality.ABSTRACT || klass.modality == Modality.SEALED,
|
||||||
superClass = superType,
|
superClass = superType,
|
||||||
superInterfaces = superInterfaces,
|
superInterfaces = superInterfaces,
|
||||||
typeParameters = typeParameters,
|
typeParameters = typeParameters,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ declare namespace JS_TESTS {
|
|||||||
get x(): number;
|
get x(): number;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
class TestSealed {
|
abstract class TestSealed {
|
||||||
protected constructor(name: string);
|
protected constructor(name: string);
|
||||||
get name(): string;
|
get name(): string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ class OuterClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsExport
|
@JsExport
|
||||||
class KT38262 {
|
open class KT38262 {
|
||||||
fun then(): Int = 42
|
fun then(): Int = 42
|
||||||
fun catch(): Int = 24
|
fun catch(): Int = 24
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user