ClassObject instance field refactoring

This commit is contained in:
Mikhael Bogdanov
2013-03-04 11:40:56 +04:00
parent 5db0f2132c
commit b3ec87f956
19 changed files with 235 additions and 48 deletions
@@ -0,0 +1,19 @@
var global = 0;
class C {
class object {
{
global = 1;
}
}
}
fun box(): String {
if (global != 0) {
return "fail1: global = $global"
}
val c = C()
if (global == 1) return "OK" else return "fail2: global = $global"
}