OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import "dart:io"; |
| 6 |
| 7 void test(ConsoleSink sink) { |
| 8 sink.add([65, 66, 67]); |
| 9 sink.write('DEF'); |
| 10 sink.writeAll(['GH', 'I']); |
| 11 sink.writeCharCode(74); |
| 12 sink.writeln('KLM'); |
| 13 } |
| 14 |
| 15 void main(List<String> arguments) { |
| 16 console.log('stdout'); |
| 17 console.error('stderr'); |
| 18 test(console.log); |
| 19 test(console.error); |
| 20 exit(1); |
| 21 } |
OLD | NEW |