| 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 | 4 |
| 5 library repositories; |
| 6 |
| 5 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:observatory/models.dart' as M; |
| 9 import 'package:observatory/service.dart' as S; |
| 6 | 10 |
| 7 main() async { | 11 part 'src/repositories/script.dart'; |
| 8 var myClass = new CustomClass<int>(); | |
| 9 await myClass.processData(); | |
| 10 } | |
| 11 | |
| 12 class CustomClass<T> { | |
| 13 Future<T> processData() async { | |
| 14 return 0; | |
| 15 } | |
| 16 } | |
| 17 | |
| OLD | NEW |