[Swift Export] KT-65008: support simple top-level properties
Merge-request: KT-MR-14131 Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
ad5ee28d58
commit
f262247b2b
@@ -0,0 +1,9 @@
|
||||
package namespace.main
|
||||
|
||||
import namespace.*
|
||||
|
||||
val foo: Int get() = 10
|
||||
|
||||
var bar: Int = 20
|
||||
|
||||
fun foobar(param: Int): Int = foo + bar + param + baz
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun baz: Int = 30
|
||||
Reference in New Issue
Block a user