add test files
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package foo
|
||||
|
||||
class MyInt() {
|
||||
var b = 0
|
||||
|
||||
fun inc() : MyInt {
|
||||
val res = MyInt()
|
||||
res.b++;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun box() : Boolean {
|
||||
var c = MyInt()
|
||||
c++;
|
||||
return (c.b == 1);
|
||||
}
|
||||
Reference in New Issue
Block a user