Fixed test data to use only annotation syntax with @
This commit is contained in:
+4
-4
@@ -5,7 +5,7 @@ import kotlin.platform.platformStatic
|
||||
// RUN: q.Foo
|
||||
object Foo {
|
||||
// RUN: q.Foo
|
||||
platformStatic fun main(s: Array<String>) {
|
||||
@platformStatic fun main(s: Array<String>) {
|
||||
println("Foo")
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ object Foo {
|
||||
class InnerFoo {
|
||||
companion object {
|
||||
// RUN: q.Foo.InnerFoo
|
||||
platformStatic fun main(s: Array<String>) {
|
||||
@platformStatic fun main(s: Array<String>) {
|
||||
println("InnerFoo")
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ object Foo {
|
||||
// RUN: q.Foo
|
||||
class InnerFoo2 {
|
||||
// RUN: q.Foo
|
||||
platformStatic fun main(s: Array<String>) {
|
||||
@platformStatic fun main(s: Array<String>) {
|
||||
println("InnerFoo")
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ object Foo2 {
|
||||
class Bar {
|
||||
companion object {
|
||||
// RUN: q.Bar
|
||||
platformStatic fun main(s: Array<String>) {
|
||||
@platformStatic fun main(s: Array<String>) {
|
||||
println("Bar")
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package q
|
||||
|
||||
native
|
||||
@native
|
||||
class Foo {
|
||||
// RUN:
|
||||
fun foo(s: Array<String>) = noImpl
|
||||
@@ -8,7 +8,7 @@ class Foo {
|
||||
|
||||
|
||||
// RUN:
|
||||
native
|
||||
@native
|
||||
fun main(s: Array<String>) {
|
||||
println("Top-level")
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
platformStatic
|
||||
@platformStatic
|
||||
fun main(args: Array<String>) {
|
||||
// yes
|
||||
}
|
||||
@@ -22,8 +22,8 @@ class B {
|
||||
|
||||
class C {
|
||||
companion object {
|
||||
platformStatic
|
||||
platformName("main0")
|
||||
@platformStatic
|
||||
@platformName("main0")
|
||||
fun main(args: Array<String>) { // no
|
||||
}
|
||||
}
|
||||
@@ -31,8 +31,8 @@ class C {
|
||||
|
||||
class D {
|
||||
companion object {
|
||||
platformStatic
|
||||
platformName("main")
|
||||
@platformStatic
|
||||
@platformName("main")
|
||||
fun badName(args: Array<String>) { // yes
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package pkg2
|
||||
|
||||
import kotlin.platform.platformName
|
||||
|
||||
platformName("aa")
|
||||
@platformName("aa")
|
||||
fun main(args: Array<String>) {
|
||||
// no
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package pkg3
|
||||
|
||||
import kotlin.platform.platformName
|
||||
|
||||
platformName("main")
|
||||
@platformName("main")
|
||||
fun aaa(args: Array<String>) {
|
||||
// yes
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ package renameTest
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
object Foo {
|
||||
platformStatic fun main(args: Array<String>) {
|
||||
@platformStatic fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package renameTest
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
object Foo {
|
||||
platformStatic fun main(args: Array<String>) {
|
||||
@platformStatic fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user