| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 var assert = chai.assert; | 5 var assert = chai.assert; |
| 6 | 6 |
| 7 suite('generic', () => { | 7 suite('generic', () => { |
| 8 "use strict"; | 8 "use strict"; |
| 9 | 9 |
| 10 let generic = dart.generic; | 10 let generic = dart.generic; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 checkType(aaraw, aadynamictype); | 255 checkType(aaraw, aadynamictype); |
| 256 checkType(aaraw, AA$(dynamic, dynamic)); | 256 checkType(aaraw, AA$(dynamic, dynamic)); |
| 257 checkType(aadynamic, aarawtype); | 257 checkType(aadynamic, aarawtype); |
| 258 checkType(aadynamic, AA); | 258 checkType(aadynamic, AA); |
| 259 }); | 259 }); |
| 260 | 260 |
| 261 test('void', () => { | 261 test('void', () => { |
| 262 //checkType((x) => x, type((void _(x)) {})); | 262 //checkType((x) => x, type((void _(x)) {})); |
| 263 }); | 263 }); |
| 264 | 264 |
| 265 test('mixins', () => { |
| 266 let c = collection; |
| 267 var s1 = new (c.SplayTreeSet$(String))(); |
| 268 |
| 269 checkType(s1, c.IterableMixin); |
| 270 checkType(s1, c.IterableMixin$(String)); |
| 271 checkType(s1, c.IterableMixin$(int), false); |
| 272 |
| 273 checkType(s1, c.SetMixin); |
| 274 checkType(s1, c.SetMixin$(String)); |
| 275 checkType(s1, c.SetMixin$(int), false); |
| 276 }); |
| 265 }); | 277 }); |
| OLD | NEW |