mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:11:19 +00:00
3786c32753
Change-Id: Id4bd09e9f00e6a5ea9c2bbd537c853c9a0862623 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152616 Commit-Queue: Joshua Litt <joshualitt@google.com> Reviewed-by: Stephen Adams <sra@google.com>
36 lines
660 B
Dart
36 lines
660 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.
|
|
|
|
abstract class Bar<C> {
|
|
final List<C> _one = [];
|
|
|
|
final bool _two = Foo is C;
|
|
}
|
|
|
|
class Foo extends Object with Bar {}
|
|
|
|
abstract class A<E> {}
|
|
|
|
abstract class B<E> extends Object with A<E> {}
|
|
|
|
class C extends B<int> {
|
|
final String _string;
|
|
C(this._string);
|
|
}
|
|
|
|
abstract class D<T> {}
|
|
|
|
abstract class E<T> = Object with D<T>;
|
|
|
|
class F extends E<int> {
|
|
final String _string;
|
|
F(this._string);
|
|
}
|
|
|
|
main() {
|
|
Foo();
|
|
C('e');
|
|
F('e');
|
|
}
|