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 -1
View File
@@ -4,7 +4,7 @@
import java.util.stream.Collectors
import java.util.stream.IntStream
fun main(args: Array<String>) {
fun main() {
val xs = IntStream.<!INTERFACE_STATIC_METHOD_CALL_FROM_JAVA6_TARGET_ERROR!>range<!>(0, 10).mapToObj { it.toString() }
.collect(Collectors.toList())
xs[0]
+1 -1
View File
@@ -1,3 +1,3 @@
package
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public fun main(): kotlin.Unit
+1 -1
View File
@@ -11,7 +11,7 @@ interface Stream<T> {
}
fun stream(): Stream<String> = null!!
fun main(args: Array<String>) {
fun main() {
val stream: Stream<String> = stream()
val xs = stream.collect(toList())
xs.foo()
+1 -1
View File
@@ -1,6 +1,6 @@
package
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public fun main(): kotlin.Unit
public fun stream(): Stream<kotlin.String>
public fun </*0*/ T> toList(): Collector<T, A<T>>
@@ -5,7 +5,7 @@ import java.util.ArrayList
class ListOfLists<T>(public val x : ArrayList<ArrayList<T>>)
fun main(args : Array<String>) {
fun main() {
val a : ArrayList<ArrayList<String>> = ArrayList()
val b : ListOfLists<String> = ListOfLists(a)
val c : ListOfLists<*> = b
@@ -1,6 +1,6 @@
package
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public fun main(): kotlin.Unit
public final class ListOfLists</*0*/ T> {
public constructor ListOfLists</*0*/ T>(/*0*/ x: java.util.ArrayList<java.util.ArrayList<T>>)