Files
kotlin-fork/plugins/uast-kotlin/testData/SimpleScript.kts
T
2021-05-05 14:22:40 +02:00

23 lines
305 B
Kotlin
Vendored

// !IGNORE_FIR
println("Hello World!")
fun getBarOrNull(flag: Boolean): Bar? {
return if (flag) Bar(42) else null
}
class Bar(val a: Int) {
val b: Int = 0
fun getAPlusB() = a + b
class Baz {
fun doSomething() {
}
}
}
getBarOrNull(true)
println("Goodbye World!")