-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generation of class companion object
- Loading branch information
1 parent
6004ccf
commit 5695845
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("sandbox-base/class/simple") | ||
@file:Suppress( | ||
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE", | ||
) | ||
|
||
package sandbox.base.`class` | ||
|
||
external class SimpleClass { | ||
var firstField: String | ||
var secondField: Double | ||
fun firstMethod(firstParam: String, secondParam: Double): Unit | ||
fun secondMethod(firstParam: String, secondParam: Double): Boolean | ||
companion object { | ||
var firstStaticField: String | ||
var secondStaticField: Double | ||
fun firstStaticMethod(firstParam: String, secondParam: Double): Unit | ||
fun secondStaticMethod(firstParam: String, secondParam: Double): Boolean | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export class SimpleClass { | ||
static firstStaticField: string; | ||
static secondStaticField: number; | ||
|
||
static firstStaticMethod(firstParam: string, secondParam: number): void; | ||
static secondStaticMethod(firstParam: string, secondParam: number): boolean; | ||
|
||
firstField: string; | ||
secondField: number; | ||
|
||
firstMethod(firstParam: string, secondParam: number): void; | ||
secondMethod(firstParam: string, secondParam: number): boolean; | ||
} |