08fb2161f7
this fixes `dart.dynamic` as well as other cases covered by emitTypeName R=vsm@google.com Review URL: https://codereview.chromium.org/1142713004
28 lines
680 B
Dart
28 lines
680 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
|
|
// Codegen dependency order test
|
|
const UNINITIALIZED = const _Uninitialized();
|
|
class _Uninitialized { const _Uninitialized(); }
|
|
|
|
class Generic<T> {
|
|
Type get type => Generic;
|
|
}
|
|
|
|
main() {
|
|
// Number literals in call expressions.
|
|
print(1.toString());
|
|
print(1.0.toString());
|
|
print(1.1.toString());
|
|
|
|
// Type literals, #184
|
|
dynamic x = 42;
|
|
print(x == dynamic);
|
|
print(x == Generic);
|
|
|
|
// Should be Generic<dynamic>
|
|
print(new Generic<int>().type);
|
|
}
|