Don't report "main parameter not necessary" in objects #KT-29414 Fixed

This commit is contained in:
Mikhail Glukhikh
2019-02-28 19:25:59 +03:00
parent 022c625d2d
commit 4d19120d84
3 changed files with 16 additions and 1 deletions
@@ -0,0 +1,7 @@
// LANGUAGE_VERSION: 1.3
// WITH_RUNTIME
// PROBLEM: none
object SomeMain {
@JvmStatic fun main(<caret>args: Array<String>) {}
}
@@ -8136,6 +8136,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/unusedMainParameter/legacy.kt");
}
@TestMetadata("object.kt")
public void testObject() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedMainParameter/object.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("idea/testData/inspectionsLocal/unusedMainParameter/simple.kt");