86d47dc5b4
Change-Id: I91bac2a5597b654082c734decdb948c21d1f5e59 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100927 Reviewed-by: Leaf Petersen <leafp@google.com>
16 lines
420 B
Dart
16 lines
420 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.
|
|
|
|
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());
|
|
}
|