blob: 5cfa38a4773a570ac0633119c34ec0e69b382dcb [file] [log] [blame]
// 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.
import "package:expect/expect.dart";
class A<T> {
foo() => this is A<int>;
}
main() {
Expect.isFalse(new A().foo());
Expect.isTrue(new A<int>().foo());
Expect.isFalse(new A<String>().foo());
}