dart-sdk/tests/dart2js/mixin_type_variable_test.dart
Joshua Litt 3786c32753 [dart2js] Port ~20 tests to nnbd #4.
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>
2020-07-20 18:03:51 +00:00

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');
}