Implement Kotlin Script support in UAST

#KT-18353 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-09-04 15:31:31 +03:00
parent 89257e6397
commit b6c32edc43
11 changed files with 240 additions and 53 deletions
+20
View File
@@ -0,0 +1,20 @@
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!")