Fix maven build + ~50 compiler tests broken by UNUSED_PARAMETER in main

This commit is contained in:
Mikhail Glukhikh
2018-10-26 14:08:11 +03:00
parent c54eb7db97
commit cb92009862
51 changed files with 56 additions and 53 deletions
+1 -1
View File
@@ -1 +1 @@
fun main(args: Array<String>) {}
fun main() {}
+1 -1
View File
@@ -1,7 +1,7 @@
import kotlin.Pair
import library.sample.*
fun main(args: Array<String>) {
fun main() {
val p = Pair(10, 20)
val x = pairAdd(p)
println("x=$x")
+1 -1
View File
@@ -2,6 +2,6 @@ interface A {
fun test() = "OK"
}
fun main(args: Array<String>) {
fun main() {
println(object : A {}.test())
}
+3 -6
View File
@@ -1,10 +1,7 @@
warning: unable to find kotlin-stdlib.jar in the Kotlin home directory. Pass either '-no-stdlib' to prevent adding it to the classpath, or the correct '-kotlin-home'
warning: unable to find kotlin-script-runtime.jar in the Kotlin home directory. Pass either '-no-stdlib' to prevent adding it to the classpath, or the correct '-kotlin-home'
warning: unable to find kotlin-reflect.jar in the Kotlin home directory. Pass either '-no-reflect' or '-no-stdlib' to prevent adding it to the classpath, or the correct '-kotlin-home'
compiler/testData/cli/jvm/simple.kt:1:16: error: unresolved reference: Array
fun main(args: Array<String>) = println("hello world")
^
compiler/testData/cli/jvm/simple.kt:1:33: error: unresolved reference: println
fun main(args: Array<String>) = println("hello world")
^
compiler/testData/cli/jvm/simple.kt:1:14: error: unresolved reference: println
fun main() = println("hello world")
^
COMPILATION_ERROR
+1 -1
View File
@@ -2,7 +2,7 @@ package beforeTest //package name should be less than imported one
import test.*
fun main(args: Array<String>) {
fun main() {
"O".switchMapOnce {
"K".switchMapOnce {
+1 -1
View File
@@ -1 +1 @@
fun main(args: Array<String>) = println("hello world")
fun main() = println("hello world")