Existing tests for 'val reassignment' of function parameters fixed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
fun loop(times : Int) {
|
||||
fun loop(var times : Int) {
|
||||
while(times > 0) {
|
||||
val u : fun(value : Int) : Unit = {
|
||||
System.out?.println(it)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user