JS: use prototype when checking is against interface

See KT-20527
This commit is contained in:
Alexey Andreev
2017-10-11 12:20:11 +03:00
parent 279126ad7e
commit 06b1ba7c47
3 changed files with 45 additions and 17 deletions
@@ -7667,6 +7667,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("prototypeUsedToFindInterface.kt")
public void testPrototypeUsedToFindInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/rtti/prototypeUsedToFindInterface.kt");
doTest(fileName);
}
@TestMetadata("rttiForClass.kt")
public void testRttiForClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/rtti/rttiForClass.kt");