mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-31786 [kotlin] Reproduce issue with importing <dynamic>.get in K2 Mode
(cherry picked from commit 7effb57b88fab8f06dba73855b69b4c5b898e74c) IJ-CR-149236 GitOrigin-RevId: 1f1904d654983519d9443719133a526ed2d5e0af
This commit is contained in:
committed by
intellij-monorepo-bot
parent
80dc0c4bc0
commit
8f6bd1f985
+5
@@ -36,6 +36,11 @@ public abstract class K2JsOptimizeImportsTestGenerated extends AbstractK2JsOptim
|
||||
public void testDefaultJsImports() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/optimizeImports/js/DefaultJsImports.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DynamicMembersNotImported.kt")
|
||||
public void testDynamicMembersNotImported() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/optimizeImports/js/DynamicMembersNotImported.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+5
@@ -36,6 +36,11 @@ public abstract class JsOptimizeImportsTestGenerated extends AbstractJsOptimizeI
|
||||
public void testDefaultJsImports() throws Exception {
|
||||
runTest("testData/editor/optimizeImports/js/DefaultJsImports.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("DynamicMembersNotImported.kt")
|
||||
public void testDynamicMembersNotImported() throws Exception {
|
||||
runTest("testData/editor/optimizeImports/js/DynamicMembersNotImported.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// IGNORE_K2
|
||||
package test
|
||||
|
||||
import kotlin.js.JSON // unused
|
||||
|
||||
fun getValue(data: dynamic): dynamic {
|
||||
return data["value"]
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// IGNORE_K2
|
||||
package test
|
||||
|
||||
fun getValue(data: dynamic): dynamic {
|
||||
return data["value"]
|
||||
}
|
||||
Reference in New Issue
Block a user