Fix maven build + ~50 compiler tests broken by UNUSED_PARAMETER in main
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
fun main(args: Array<String>) {}
|
||||
fun main() {}
|
||||
Vendored
+1
-1
@@ -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
@@ -2,6 +2,6 @@ interface A {
|
||||
fun test() = "OK"
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
fun main() {
|
||||
println(object : A {}.test())
|
||||
}
|
||||
+3
-6
@@ -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
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
fun main(args: Array<String>) = println("hello world")
|
||||
fun main() = println("hello world")
|
||||
|
||||
Reference in New Issue
Block a user