Update testdata according to change compiler version to 1.4

This commit is contained in:
Dmitriy Novozhilov
2020-01-15 22:13:52 +03:00
parent 5bfb92661e
commit 76b3964e96
39 changed files with 109 additions and 244 deletions
+4 -4
View File
@@ -2,11 +2,11 @@
class Command() {}
fun parse(<warning>cmd</warning>: String): Command? { return null }
fun parse(<warning descr="[UNUSED_PARAMETER] Parameter 'cmd' is never used">cmd</warning>: String): Command? { return null }
fun Any.<warning>equals</warning>(other : Any?) : Boolean = this === other
fun Any.<warning descr="[EXTENSION_SHADOWED_BY_MEMBER] Extension is shadowed by a member: public open operator fun equals(other: Any?): Boolean">equals</warning>(other : Any?) : Boolean = this === other
fun main(args: Array<String>) {
fun main(<warning descr="[UNUSED_PARAMETER] Parameter 'args' is never used">args</warning>: Array<String>) {
val command = parse("")
if (command == null) <warning>1</warning> // error on this line, but must be OK
if (command == null) <warning descr="[UNUSED_EXPRESSION] The expression is unused">1</warning> // error on this line, but must be OK
}