// Copyright (c) 2011, 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. // // Test verifying that generic extends are processed correctly. import "package:expect/expect.dart"; class A {} class B> {} class C, T2> {} main() { var a = new A(); var b = new B>(); var c = new C, String>(); Expect.isTrue(a is Object); Expect.isTrue(a is A); Expect.isTrue(a is A); Expect.isTrue(a is! A); Expect.isTrue(b is Object); Expect.isTrue(b is B>); Expect.isTrue(b is B>); Expect.isTrue(b is! B>); Expect.isTrue(c is Object); Expect.isTrue(c is C, Object>); Expect.isTrue(c is C, String>); Expect.isTrue(c is! C, int>); }