Add platformStatic annotation to main method from java

#KT-8219 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-07-24 14:13:52 +03:00
parent b54da25108
commit 22ee063269
20 changed files with 84 additions and 82 deletions
+4 -4
View File
@@ -1,7 +1,9 @@
package switch_demo
import kotlin.platform.platformStatic
public object SwitchDemo {
public fun main(args: Array<String>) {
platformStatic public fun main(args: Array<String>) {
val month = 8
val monthString: String
when (month) {
@@ -10,6 +12,4 @@ public object SwitchDemo {
}
println(monthString)
}
}
fun main(args: Array<String>) = SwitchDemo.main(args)
}