JS/RTTI: use typeof f === 'function' to check function instance
This commit is contained in:
committed by
Alexey Andreev
parent
7cfe1433c5
commit
ae9a5523e0
@@ -41,6 +41,12 @@ public class CastTestGenerated extends AbstractCastTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("castToFunction.kt")
|
||||
public void testCastToFunction() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToFunction.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("castToGenericType.kt")
|
||||
public void testCastToGenericType() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToGenericType.kt");
|
||||
|
||||
Reference in New Issue
Block a user