// Copyright (c) 2013, 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. // dart2jsOptions=--strong --no-minify // Test that Type.toString returns nice strings for native classes with // reserved names and for raw types. import "package:expect/expect.dart"; class C {} class D {} class Class$With$Dollar {} void main() { Expect.equals('C', new C().runtimeType.toString()); Expect.equals('C', new C().runtimeType.toString()); Expect.equals('C', new C().runtimeType.toString()); Expect.equals('C', new C().runtimeType.toString()); Expect.equals('C', new C().runtimeType.toString()); Expect.equals('D', new D().runtimeType.toString()); Expect.equals('D', new D().runtimeType.toString()); D d = new D>(); Expect.equals( 'D, D>', d.runtimeType.toString()); Expect.equals(r'C', new C().runtimeType.toString()); }