cc768f8f98
Review URL: https://codereview.chromium.org//11090046 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13469 260f80e4-7a28-3924-810f-c04153c831b5
18 lines
530 B
Dart
18 lines
530 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#import("testing/dart/version.dart");
|
|
|
|
void main() {
|
|
Version version = new Version("tools/VERSION");
|
|
Future f = version.getVersion();
|
|
f.then((currentVersion) {
|
|
print(currentVersion);
|
|
});
|
|
f.handleException((e) {
|
|
print("Could not create version number, failed with: $e");
|
|
return true;
|
|
});
|
|
}
|