Add test for UNUSED_VALUE on when subject variable

This commit is contained in:
Dmitry Petrov
2017-10-20 18:09:19 +03:00
parent c20c1abb68
commit 0a0bc67e8a
4 changed files with 24 additions and 0 deletions
@@ -22501,6 +22501,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/withSubjectVariable/unsupportedVariableDeclarationsInWhenSubject.kt");
doTest(fileName);
}
@TestMetadata("unusedWhenSubjectVariable.kt")
public void testUnusedWhenSubjectVariable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/when/withSubjectVariable/unusedWhenSubjectVariable.kt");
doTest(fileName);
}
}
}
}