OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Regression test for issue 19728. | 5 // Regression test for issue 19728. |
6 | 6 |
7 class C<T extends dynamic> { | 7 class C<T extends dynamic> { |
8 T field; | 8 T field; |
9 | 9 |
10 test() { | 10 test() { |
11 field = 0; | 11 field = 0; |
12 int i = field; | 12 int i = field; |
13 } | 13 } |
14 } | 14 } |
15 | 15 |
16 void main() { | 16 void main() { |
17 new C().test(); | 17 new C().test(); |
18 } | 18 } |
OLD | NEW |