Report UNUSED_PARAMETER on main parameter in 1.3+ #KT-26999 Fixed

This commit is contained in:
Mikhail Glukhikh
2018-10-19 15:19:17 +03:00
parent b9161c5293
commit f3555daa60
205 changed files with 241 additions and 207 deletions
@@ -1,7 +1,7 @@
//KT-2851 Type inference failed passing in not-null after smart-cast value in Pair
package a
fun main(args: Array<String>) {
fun main() {
val value: String? = ""
if (value != null) {
foo(Pair("val", <!DEBUG_INFO_SMARTCAST!>value<!>))
@@ -2,7 +2,7 @@ package
package a {
public fun foo(/*0*/ map: a.Pair<kotlin.String, kotlin.String>): kotlin.Unit
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public fun main(): kotlin.Unit
public final class Pair</*0*/ out A, /*1*/ out B> {
public constructor Pair</*0*/ out A, /*1*/ out B>(/*0*/ first: A, /*1*/ second: B)