Don't report "main parameter not necessary" in objects #KT-29414 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
|
||||
object SomeMain {
|
||||
@JvmStatic fun main(<caret>args: Array<String>) {}
|
||||
}
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user