Existing tests for 'val reassignment' of function parameters fixed

This commit is contained in:
svtk
2011-10-28 13:41:07 +04:00
parent 7db6752e20
commit c7bb6a08d4
8 changed files with 19 additions and 12 deletions
@@ -1,5 +1,5 @@
class C(x: Int, val y : Int) {
fun initChild(x: Int) : java.lang.Object {
fun initChild(var x: Int) : java.lang.Object {
return object : java.lang.Object() {
override fun toString(): String? {
x = x + y