JS/RTTI: fixed double testing for null for reified
This commit is contained in:
committed by
Alexey Andreev
parent
5fdede74a3
commit
dce0971c52
@@ -95,6 +95,12 @@ public class ReifiedTestGenerated extends AbstractReifiedTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("isTNullable.kt")
|
||||
public void testIsTNullable() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reified/cases/isTNullable.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("lambda.kt")
|
||||
public void testLambda() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/reified/cases/lambda.kt");
|
||||
|
||||
@@ -146,6 +146,8 @@ public class DirectiveTestUtils {
|
||||
|
||||
private static final DirectiveHandler COUNT_BREAKS = new CountNodesDirective<JsBreak>("CHECK_BREAKS_COUNT", JsBreak.class);
|
||||
|
||||
private static final DirectiveHandler COUNT_NULLS = new CountNodesDirective<JsNullLiteral>("CHECK_NULLS_COUNT", JsNullLiteral.class);
|
||||
|
||||
private static final DirectiveHandler HAS_INLINE_METADATA = new DirectiveHandler("CHECK_HAS_INLINE_METADATA") {
|
||||
@Override
|
||||
void processEntry(@NotNull JsNode ast, @NotNull ArgumentsHelper arguments) throws Exception {
|
||||
@@ -175,6 +177,7 @@ public class DirectiveTestUtils {
|
||||
COUNT_LABELS,
|
||||
COUNT_VARS,
|
||||
COUNT_BREAKS,
|
||||
COUNT_NULLS,
|
||||
HAS_INLINE_METADATA,
|
||||
HAS_NO_INLINE_METADATA
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user