Script refactoring, codegen tests: change test data according to semantics change

Add some new tests for uncovered cases
This commit is contained in:
Pavel V. Talanov
2015-11-17 15:14:15 +03:00
parent 6563830584
commit ad58617753
22 changed files with 42 additions and 26 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
>>> fun foo() = 765
>>> foo(1)
error: too many arguments for public final fun foo(): kotlin.Int defined in <script>
error: too many arguments for public final fun foo(): kotlin.Int defined in Line1
foo(1)
^
>>> foo()
@@ -0,0 +1,6 @@
>>> val c = "OK"
>>> inner class A {
... fun foo() = c
... }
>>> A().foo()
OK