File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed
js.tests/test/org/jetbrains/kotlin/js/test/semantics
src/org/jetbrains/kotlin/js/facade
testData/box/inlineMultiModule Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -4517,6 +4517,12 @@ public void testSimple() throws Exception {
4517
4517
doTest (fileName );
4518
4518
}
4519
4519
4520
+ @ TestMetadata ("test.kt" )
4521
+ public void testTest () throws Exception {
4522
+ String fileName = KotlinTestUtils .navigationMetadata ("js/js.translator/testData/box/inlineMultiModule/test.kt" );
4523
+ doTest (fileName );
4524
+ }
4525
+
4520
4526
@ TestMetadata ("typealiases.kt" )
4521
4527
public void testTypealiases () throws Exception {
4522
4528
String fileName = KotlinTestUtils .navigationMetadata ("js/js.translator/testData/box/inlineMultiModule/typealiases.kt" );
Original file line number Diff line number Diff line change @@ -82,9 +82,11 @@ public TranslationResult translate(
82
82
ProgressIndicatorAndCompilationCanceledStatus .checkCanceled ();
83
83
if (hasError (diagnostics )) return new TranslationResult .Fail (diagnostics );
84
84
85
- JsProgram program = JsInliner .process (context );
86
- ProgressIndicatorAndCompilationCanceledStatus .checkCanceled ();
87
- if (hasError (diagnostics )) return new TranslationResult .Fail (diagnostics );
85
+ //JsProgram program = JsInliner.process(context);
86
+ //ProgressIndicatorAndCompilationCanceledStatus.checkCanceled();
87
+ //if (hasError(diagnostics)) return new TranslationResult.Fail(diagnostics);
88
+
89
+ JsProgram program = context .program ();
88
90
89
91
CoroutineTransformer coroutineTransformer = new CoroutineTransformer (program );
90
92
coroutineTransformer .accept (program );
Original file line number Diff line number Diff line change
1
+ // MODULE: lib
2
+ // FILE: lib.kt
3
+
4
+ package utils
5
+
6
+ inline fun <reified T > rrr (f1 : Any .()-> Unit ) {
7
+ 4 .f1()
8
+ }
9
+
10
+ // MODULE: main(lib)
11
+ // FILE: main.kt
12
+
13
+ import utils.*
14
+
15
+ fun box (): String {
16
+ var result = " fail"
17
+ rrr<Any > {
18
+ result = " OK"
19
+ }
20
+ return result
21
+ }
You can’t perform that action at this time.
0 commit comments