| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 typedef void Callback<T>(T x); | 4 typedef void Callback<T>(T x); |
| 5 | 5 |
| 6 class Foo<T> { | 6 class Foo<T> { |
| 7 final T finalField; | 7 final T finalField; |
| 8 final Callback<T> callbackField; | 8 final Callback<T> callbackField; |
| 9 | 9 |
| 10 T mutableField; | 10 T mutableField; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 fooNum.method(2.5); | 36 fooNum.method(2.5); |
| 37 fooNum.setter = 3; | 37 fooNum.setter = 3; |
| 38 fooNum.setter = 2.5; | 38 fooNum.setter = 2.5; |
| 39 fooNum.withCallback((num x) {}); | 39 fooNum.withCallback((num x) {}); |
| 40 fooNum.mutableField = 3; | 40 fooNum.mutableField = 3; |
| 41 fooNum.mutableField = 2.5; | 41 fooNum.mutableField = 2.5; |
| 42 fooNum.mutableCallbackField(3); | 42 fooNum.mutableCallbackField(3); |
| 43 fooNum.mutableCallbackField(2.5); | 43 fooNum.mutableCallbackField(2.5); |
| 44 fooNum.mutableCallbackField = (num x) {}; | 44 fooNum.mutableCallbackField = (num x) {}; |
| 45 } | 45 } |
| OLD | NEW |