mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
02782d7cff
BUG= R=karlklose@google.com Review URL: https://codereview.chromium.org//18090004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24780 260f80e4-7a28-3924-810f-c04153c831b5
20 lines
No EOL
478 B
Dart
20 lines
No EOL
478 B
Dart
// 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.
|
|
|
|
// Regression test for r24720.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
class A<T> {}
|
|
|
|
class B extends A<int> {
|
|
B() : this.foo();
|
|
B.foo();
|
|
}
|
|
|
|
main() {
|
|
Expect.isTrue(new B() is B);
|
|
Expect.isTrue(new B() is A<int>);
|
|
Expect.isFalse(new B() is A<String>);
|
|
} |