Script refactoring, codegen tests: change test data according to semantics change
Add some new tests for uncovered cases
This commit is contained in:
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user