Skip to content

Commit

Permalink
Add an example of @JsOverlay static final field to java readable and …
Browse files Browse the repository at this point in the history
…integration tests.

PiperOrigin-RevId: 589872389
  • Loading branch information
mollyibot authored and copybara-github committed Dec 11, 2023
1 parent fde7a38 commit 5e354cc
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
import static com.google.j2cl.integration.testing.Asserts.assertTrue;

import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

public class Main {
@JsType(isNative = true, namespace = "test.foo")
static class NativeJsTypeWithOverlay {
@JsOverlay public static final int COMPILE_TIME_CONSTANT = 1;
@JsOverlay public static Object staticField = new Object();
public native int m();

Expand Down Expand Up @@ -59,6 +59,11 @@ private Object getStaticField() {
}
}

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
static class NativeJsTypeWithOverlayConstant {
@JsOverlay public static final int COMPILE_TIME_CONSTANT = 1;
}

@JsType(isNative = true, namespace = "test.foo")
static final class NativeFinalJsTypeWithOverlay {
public native int e();
Expand All @@ -83,7 +88,7 @@ public static void testNativeJsWithOverlay() {
NativeJsTypeWithOverlay object = new NativeJsTypeWithOverlay();
assertTrue(6 == object.callM());
assertTrue(20 == NativeJsTypeWithOverlay.fun(4, 5));
assertTrue(1 == NativeJsTypeWithOverlay.COMPILE_TIME_CONSTANT);
assertTrue(1 == NativeJsTypeWithOverlayConstant.COMPILE_TIME_CONSTANT);
assertTrue(object.getStaticField() != null);
assertTrue(NativeJsTypeWithOverlay.staticField != null);
NativeJsTypeWithOverlay.staticField = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public class Main {

@JsType(isNative = true, namespace = "test.foo")
public interface NativeJsTypeInterfaceWithOverlay {
@JsOverlay String COMPILE_TIME_CONSTANT = "10";

@JsOverlay Object staticField = new Object();

int m();
Expand All @@ -46,8 +44,6 @@ public int m() {
public static class NativeJsTypeWithOverlay {
public static int nonJsOverlayField;

@JsOverlay public static final int COMPILE_TIME_CONSTANT = 10;

@JsOverlay public static Object staticField = new Object();

public native int m();
Expand Down Expand Up @@ -100,6 +96,12 @@ public final void overlay() {}
public static void overlay(NativeJsTypeWithOverlay o) {}
}

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
static class NativeJsTypeWithOverlayConstant {
@JsOverlay public static final int COMPILE_TIME_CONSTANT = 10;
@JsOverlay public static final String STRING_COMPILE_TIME_CONSTANT = "10";
}

@JsFunction
private interface Intf {
void run();
Expand All @@ -113,13 +115,14 @@ public void test() {
NativeJsTypeWithOverlay.bar();
n.foo();
int a =
NativeJsTypeWithOverlay.COMPILE_TIME_CONSTANT + NativeJsTypeWithOverlay.nonJsOverlayField;
NativeJsTypeWithOverlayConstant.COMPILE_TIME_CONSTANT
+ NativeJsTypeWithOverlay.nonJsOverlayField;
NativeJsTypeWithOverlay.staticField = null;
NativeJsTypeWithOverlay.varargs(1, 2, 3);
n.baz();

String b =
NativeJsTypeInterfaceWithOverlay.COMPILE_TIME_CONSTANT
NativeJsTypeWithOverlayConstant.STRING_COMPILE_TIME_CONSTANT
+ NativeJsTypeInterfaceWithOverlay.staticField;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class $Overlay {
j_l_Object = goog.module.get('java.lang.Object$impl');
}
}
/**@const {string} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay = '10';
/**@private {*} @nodts*/
$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
[NativeJsTypeInterfaceWithOverlay] => [$Overlay.$clinit = () =>{};] "jsoverlay.Main$NativeJsTypeInterfaceWithOverlay$$Overlay.<clinit>"
[NativeJsTypeInterfaceWithOverlay] => [$Overlay.$loadModules();] "jsoverlay.Main$NativeJsTypeInterfaceWithOverlay$$Overlay.<clinit>"
[@JsOverlay Object staticField = new Object();] => [$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay = j_l_Object.$create__();] "jsoverlay.Main$NativeJsTypeInterfaceWithOverlay$$Overlay.<clinit>"
[@JsOverlay String COMPILE_TIME_CONSTANT = "10";] => [/**@const {string} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay = '10';]
[COMPILE_TIME_CONSTANT] => [f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay]
[NativeJsTypeInterfaceWithOverlay] => [/**@private {*} @nodts*/
$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay;]
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class $Overlay {
j_l_Object = goog.module.get('java.lang.Object$impl');
}
}
/**@const {number} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay = 10;
/**@private {*} @nodts*/
$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay;
$Util.$setClassMetadata($Overlay, 'test.foo.NativeJsTypeWithOverlay');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,5 @@
[NativeJsTypeWithOverlay] => [$Overlay.$clinit = () =>{};] "jsoverlay.Main$NativeJsTypeWithOverlay$$Overlay.<clinit>"
[NativeJsTypeWithOverlay] => [$Overlay.$loadModules();] "jsoverlay.Main$NativeJsTypeWithOverlay$$Overlay.<clinit>"
[@JsOverlay public static Object staticField = new Object();] => [$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay = j_l_Object.$create__();] "jsoverlay.Main$NativeJsTypeWithOverlay$$Overlay.<clinit>"
[@JsOverlay public static final int COMPILE_TIME_CONSTANT = 10;] => [/**@const {number} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay = 10;]
[COMPILE_TIME_CONSTANT] => [f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay]
[NativeJsTypeWithOverlay] => [/**@private {*} @nodts*/
$Overlay.$static_staticField__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay;]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
goog.module('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay$impl');

const $Util = goog.require('nativebootstrap.Util$impl');

/** @nodts */
class $Overlay {
/** @nodts */
static $clinit() {
$Overlay.$clinit = () =>{};
$Overlay.$loadModules();
}
/** @nodts @return {boolean} */
static $isInstance(/** ? */ instance) {
return instance instanceof Object;
}

/** @nodts */
static $loadModules() {}
}
/**@const {number} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay = 10;
/**@const {string} @nodts*/
$Overlay.f_STRING_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay = '10';
$Util.$setClassMetadata($Overlay, 'Object');

exports = $Overlay;

//# sourceMappingURL=Main$NativeJsTypeWithOverlayConstant$$Overlay.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
goog.module('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay');

goog.require('nativebootstrap.Util');

const $Overlay = goog.require('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay$impl');
/** @nodts */
exports = $Overlay;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[NativeJsTypeWithOverlayConstant] => [$Overlay]
[NativeJsTypeWithOverlayConstant] => [$clinit]
[NativeJsTypeWithOverlayConstant] => [$Overlay.$clinit = () =>{};] "jsoverlay.Main$NativeJsTypeWithOverlayConstant$$Overlay.<clinit>"
[NativeJsTypeWithOverlayConstant] => [$Overlay.$loadModules();] "jsoverlay.Main$NativeJsTypeWithOverlayConstant$$Overlay.<clinit>"
[@JsOverlay public static final int COMPILE_TIME_CONSTANT = 10;] => [/**@const {number} @nodts*/
$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay = 10;]
[COMPILE_TIME_CONSTANT] => [f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay]
[@JsOverlay public static final String STRING_COMPILE_TIME_CONSTANT = "10";] => [/**@const {string} @nodts*/
$Overlay.f_STRING_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay = '10';]
[STRING_COMPILE_TIME_CONSTANT] => [f_STRING_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let j_l_String = goog.forwardDeclare('java.lang.String$impl');
let NativeJsTypeInterfaceWithOverlay_$Overlay = goog.forwardDeclare('jsoverlay.Main.NativeJsTypeInterfaceWithOverlay.$Overlay$impl');
let NativeJsTypeInterfaceWithOverlayImpl = goog.forwardDeclare('jsoverlay.Main.NativeJsTypeInterfaceWithOverlayImpl$impl');
let $Overlay = goog.forwardDeclare('jsoverlay.Main.NativeJsTypeWithOverlay.$Overlay$impl');
let NativeJsTypeWithOverlayConstant_$Overlay = goog.forwardDeclare('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay$impl');
let NativeJsTypeInterfaceWithOverlay = goog.forwardDeclare('test.foo.NativeJsTypeInterfaceWithOverlay');
let NativeJsTypeWithOverlay = goog.forwardDeclare('test.foo.NativeJsTypeWithOverlay');
let $Arrays = goog.forwardDeclare('vmbootstrap.Arrays$impl');
Expand Down Expand Up @@ -36,11 +37,11 @@ class Main extends j_l_Object {
NativeJsTypeWithOverlay.n();
$Overlay.m_bar__int();
$Overlay.m_foo__$devirt__jsoverlay_Main_NativeJsTypeWithOverlay__int(n);
let a = $Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay + NativeJsTypeWithOverlay.nonJsOverlayField | 0;
let a = NativeJsTypeWithOverlayConstant_$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay + NativeJsTypeWithOverlay.nonJsOverlayField | 0;
$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay = null;
$Overlay.m_varargs__arrayOf_int__int(/**@type {!Array<number>}*/ ($Arrays.$init([1, 2, 3], $$int)));
$Overlay.m_baz__$devirt__jsoverlay_Main_NativeJsTypeWithOverlay__int(n);
let b = j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay) + j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay);
let b = j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeWithOverlayConstant_$Overlay.f_STRING_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay) + j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay);
}
/** @nodts */
m_testOverlayInterface__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay__void(/** NativeJsTypeInterfaceWithOverlay */ foo) {
Expand Down Expand Up @@ -71,6 +72,7 @@ class Main extends j_l_Object {
NativeJsTypeInterfaceWithOverlay_$Overlay = goog.module.get('jsoverlay.Main.NativeJsTypeInterfaceWithOverlay.$Overlay$impl');
NativeJsTypeInterfaceWithOverlayImpl = goog.module.get('jsoverlay.Main.NativeJsTypeInterfaceWithOverlayImpl$impl');
$Overlay = goog.module.get('jsoverlay.Main.NativeJsTypeWithOverlay.$Overlay$impl');
NativeJsTypeWithOverlayConstant_$Overlay = goog.module.get('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay$impl');
NativeJsTypeWithOverlay = goog.module.get('test.foo.NativeJsTypeWithOverlay');
$Arrays = goog.module.get('vmbootstrap.Arrays$impl');
$$int = goog.module.get('vmbootstrap.primitives.$int$impl');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ goog.require('java.lang.String');
goog.require('jsoverlay.Main.NativeJsTypeInterfaceWithOverlay.$Overlay');
goog.require('jsoverlay.Main.NativeJsTypeInterfaceWithOverlayImpl');
goog.require('jsoverlay.Main.NativeJsTypeWithOverlay.$Overlay');
goog.require('jsoverlay.Main.NativeJsTypeWithOverlayConstant.$Overlay');
goog.require('nativebootstrap.Util');
goog.require('test.foo.NativeJsTypeInterfaceWithOverlay');
goog.require('test.foo.NativeJsTypeWithOverlay');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
[NativeJsTypeWithOverlay.bar();] => [$Overlay.m_bar__int();] "jsoverlay.Main.test"
[n.foo();] => [$Overlay.m_foo__$devirt__jsoverlay_Main_NativeJsTypeWithOverlay__int(n);] "jsoverlay.Main.test"
[int a =
NativeJsTypeWithOverlay.COMPILE_TIME_CONSTANT + NativeJsTypeWithOverlay.nonJsOverlayField;] => [let a = $Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay + NativeJsTypeWithOverlay.nonJsOverlayField | 0;] "jsoverlay.Main.test"
NativeJsTypeWithOverlayConstant.COMPILE_TIME_CONSTANT
+ NativeJsTypeWithOverlay.nonJsOverlayField;] => [let a = NativeJsTypeWithOverlayConstant_$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay + NativeJsTypeWithOverlay.nonJsOverlayField | 0;] "jsoverlay.Main.test"
[a] => [a] "a"
[NativeJsTypeWithOverlay.staticField = null;] => [$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeWithOverlay_$Overlay = null;] "jsoverlay.Main.test"
[NativeJsTypeWithOverlay.varargs(1, 2, 3);] => [$Overlay.m_varargs__arrayOf_int__int(/**@type {!Array<number>}*/ ($Arrays.$init([1, 2, 3], $$int)));] "jsoverlay.Main.test"
[n.baz();] => [$Overlay.m_baz__$devirt__jsoverlay_Main_NativeJsTypeWithOverlay__int(n);] "jsoverlay.Main.test"
[String b =
NativeJsTypeInterfaceWithOverlay.COMPILE_TIME_CONSTANT
+ NativeJsTypeInterfaceWithOverlay.staticField;] => [let b = j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay) + j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay);] "jsoverlay.Main.test"
NativeJsTypeWithOverlayConstant.STRING_COMPILE_TIME_CONSTANT
+ NativeJsTypeInterfaceWithOverlay.staticField;] => [let b = j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeWithOverlayConstant_$Overlay.f_STRING_COMPILE_TIME_CONSTANT__jsoverlay_Main_NativeJsTypeWithOverlayConstant_$Overlay) + j_l_String.m_valueOf__java_lang_Object__java_lang_String(NativeJsTypeInterfaceWithOverlay_$Overlay.f_staticField__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay_$Overlay);] "jsoverlay.Main.test"
[b] => [b] "b"
[testOverlayInterface] => [m_testOverlayInterface__jsoverlay_Main_NativeJsTypeInterfaceWithOverlay__void]
[foo] => [foo] "foo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@class J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion;
@class J2ktJsoverlayMain_NativeJsTypeWithOverlay;
@class J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion;
@class NSString;

@protocol J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlay;

Expand All @@ -27,10 +26,6 @@ NS_INLINE void JsoverlayMain_testOverlayInterfaceImpl(void) {

@compatibility_alias JsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion;

NS_INLINE NSString* JsoverlayMain_NativeJsTypeInterfaceWithOverlay_get_COMPILE_TIME_CONSTANT(void) {
return J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion.shared.COMPILE_TIME_CONSTANT_;
}

NS_INLINE id _Nullable JsoverlayMain_NativeJsTypeInterfaceWithOverlay_get_staticField(void) {
return J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion.shared.staticField_;
}
Expand All @@ -39,8 +34,6 @@ NS_INLINE id _Nullable JsoverlayMain_NativeJsTypeInterfaceWithOverlay_get_static

@compatibility_alias JsoverlayMain_NativeJsTypeWithOverlayCompanion J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion;

#define JsoverlayMain_NativeJsTypeWithOverlay_COMPILE_TIME_CONSTANT 10

NS_INLINE jint JsoverlayMain_NativeJsTypeWithOverlay_get_nonJsOverlayField(void) {
return J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion.shared.nonJsOverlayField_;
}
Expand All @@ -49,10 +42,6 @@ NS_INLINE void JsoverlayMain_NativeJsTypeWithOverlay_set_nonJsOverlayField(jint
J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion.shared.nonJsOverlayField_ = value;
}

NS_INLINE jint JsoverlayMain_NativeJsTypeWithOverlay_get_COMPILE_TIME_CONSTANT(void) {
return J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion.shared.COMPILE_TIME_CONSTANT_;
}

NS_INLINE id _Nullable JsoverlayMain_NativeJsTypeWithOverlay_get_staticField(void) {
return J2ktJsoverlayMain_NativeJsTypeWithOverlayCompanion.shared.staticField_;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ open class Main {
Main.NativeJsTypeWithOverlay.n()
Main.NativeJsTypeWithOverlay.bar_private_2()
n!!.foo_private_2()
val a: Int = Main.NativeJsTypeWithOverlay.COMPILE_TIME_CONSTANT + Main.NativeJsTypeWithOverlay.nonJsOverlayField
val a: Int = Main.NativeJsTypeWithOverlayConstant.COMPILE_TIME_CONSTANT + Main.NativeJsTypeWithOverlay.nonJsOverlayField
Main.NativeJsTypeWithOverlay.staticField = null
Main.NativeJsTypeWithOverlay.varargs(1, 2, 3)
n!!.baz_private_2()
val b: String? = Main.NativeJsTypeInterfaceWithOverlay.COMPILE_TIME_CONSTANT + Main.NativeJsTypeInterfaceWithOverlay.staticField
val b: String? = Main.NativeJsTypeWithOverlayConstant.STRING_COMPILE_TIME_CONSTANT + Main.NativeJsTypeInterfaceWithOverlay.staticField
}

@ObjCName("testOverlayInterface")
Expand Down Expand Up @@ -82,10 +82,7 @@ open class Main {

@ObjCName("J2ktJsoverlayMain_NativeJsTypeInterfaceWithOverlayCompanion", exact = true)
companion object {
@ObjCName("COMPILE_TIME_CONSTANT_")
@JsOverlay
const val COMPILE_TIME_CONSTANT: String = "10"

@JvmField
@ObjCName("staticField_")
@JsOverlay
val staticField: Any? = Any()
Expand Down Expand Up @@ -138,10 +135,6 @@ open class Main {
@ObjCName("nonJsOverlayField_")
var nonJsOverlayField: Int = 0

@ObjCName("COMPILE_TIME_CONSTANT_")
@JsOverlay
const val COMPILE_TIME_CONSTANT: Int = 10

@JvmField
@ObjCName("staticField_")
@JsOverlay
Expand Down Expand Up @@ -182,6 +175,17 @@ open class Main {
}
}

@JsType(name = "Object", namespace = JsPackage.GLOBAL, isNative = true)
open class NativeJsTypeWithOverlayConstant internal constructor() {
companion object {
@JsOverlay
const val COMPILE_TIME_CONSTANT: Int = 10

@JsOverlay
const val STRING_COMPILE_TIME_CONSTANT: String = "10"
}
}

@JsFunction
fun interface Intf {
@ObjCName("run")
Expand Down

0 comments on commit 5e354cc

Please sign in to comment.