Index: test/codegen/expect/fieldtest.js |
diff --git a/test/codegen/expect/fieldtest.js b/test/codegen/expect/fieldtest.js |
index 9354cf6742d7c7fd365d7343aeb536e991928128..bb3dc98499201330041072af24f5965f45ac645a 100644 |
--- a/test/codegen/expect/fieldtest.js |
+++ b/test/codegen/expect/fieldtest.js |
@@ -1,17 +1,45 @@ |
var fieldtest; |
(function(exports) { |
'use strict'; |
+ let x = Symbol('x'); |
class A extends core.Object { |
A() { |
- this.x = 42; |
+ this[x] = 42; |
+ } |
+ get x() { |
+ return this[x]; |
+ } |
+ set x(value) { |
+ this[x] = value; |
} |
} |
+ let x$ = Symbol('x'); |
+ let y = Symbol('y'); |
+ let z = Symbol('z'); |
let B$ = dart.generic(function(T) { |
class B extends core.Object { |
B() { |
- this.x = null; |
- this.y = null; |
- this.z = null; |
+ this[x$] = null; |
+ this[y] = null; |
+ this[z] = null; |
+ } |
+ get x() { |
+ return this[x$]; |
+ } |
+ set x(value) { |
+ this[x$] = value; |
+ } |
+ get y() { |
+ return this[y]; |
+ } |
+ set y(value) { |
+ this[y] = value; |
+ } |
+ get z() { |
+ return this[z]; |
+ } |
+ set z(value) { |
+ this[z] = value; |
} |
} |
return B; |