rename platformStatic to jvmStatic
This commit is contained in:
+1
-3
@@ -1,6 +1,4 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
public class Identifier<T> {
|
||||
public val name: T
|
||||
private val myHasDollar: Boolean
|
||||
@@ -23,7 +21,7 @@ public class Identifier<T> {
|
||||
}
|
||||
|
||||
public object User {
|
||||
platformStatic public fun main(args: Array<String>) {
|
||||
jvmStatic public fun main(args: Array<String>) {
|
||||
val i1 = Identifier("name", false, true)
|
||||
val i2 = Identifier("name", false)
|
||||
val i3 = Identifier("name")
|
||||
|
||||
+1
-2
@@ -3,10 +3,9 @@
|
||||
// ERROR: Assignments are not expressions, and only expressions are allowed in this context
|
||||
// ERROR: Unresolved reference: close
|
||||
import java.io.*
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
object FileRead {
|
||||
platformStatic public fun main(args: Array<String>) {
|
||||
jvmStatic public fun main(args: Array<String>) {
|
||||
try {
|
||||
val fstream = FileInputStream()
|
||||
val `in` = DataInputStream(fstream)
|
||||
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
package demo
|
||||
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
object Program {
|
||||
platformStatic public fun main(args: Array<String>) {
|
||||
jvmStatic public fun main(args: Array<String>) {
|
||||
println("Halo!")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user