mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 22:01:19 +00:00
6005e923d8
The `regress` folder in tests/web and tests/web_2 has been renamed to `issue`. All issue-numbered tests have been placed there; other tests have been moved out of that folder. Change-Id: I4534d34b2ef21f7accc45c3ce097d9be74845e4d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235984 Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Mayank Patke <fishythefish@google.com>
27 lines
547 B
Dart
27 lines
547 B
Dart
// Copyright (c) 2017, 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 Bar<X> implements Baz {}
|
|
|
|
class Baz {}
|
|
|
|
var g;
|
|
|
|
abstract class Foo<A extends Baz> {
|
|
final bool thing = g is A;
|
|
}
|
|
|
|
class Qux extends Foo<Baz> {}
|
|
|
|
main() {
|
|
g = new Baz();
|
|
var f = new Qux();
|
|
Expect.isTrue(f.thing);
|
|
g = 'ello';
|
|
var f2 = new Qux();
|
|
Expect.isFalse(f2.thing);
|
|
}
|