Add script codegen tests with package statements

Tests codegen annotating visitor
This commit is contained in:
Pavel V. Talanov
2015-11-18 13:26:12 +03:00
parent ae5c95038b
commit bdc64f322c
3 changed files with 42 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package script
fun f(j: Int): Int {
fun g(i: Int) = i * i *j
return g(g(j))
}
val rv = f(2)
// expected: rv: 128