Highlight unused parameters in main function in 1.3 (KT-26999)

This commit is contained in:
Mikhail Glukhikh
2018-10-18 17:36:58 +03:00
parent 17da136420
commit 387efc3791
10 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ fun parse(<warning>cmd</warning>: String): Command? { return null }
fun Any.<warning>equals</warning>(other : Any?) : Boolean = this === other
fun main(args: Array<String>) {
fun main(<warning>args</warning>: Array<String>) {
val command = parse("")
if (command == null) <warning>1</warning> // error on this line, but must be OK
}