JS/RTTI: use typeof f === 'function' to check function instance

This commit is contained in:
Alexey Tsvetkov
2015-06-17 22:44:09 +03:00
committed by Alexey Andreev
parent 7cfe1433c5
commit ae9a5523e0
3 changed files with 26 additions and 1 deletions
@@ -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");