Files
sdk/pkg/front_end/testcases/bug35470.dart
T
Dmitry Stefantsov 4579863064 [fasta] Handle type parameters of supertypes in type arguments checks
Closes #35470.

Bug: http://dartbug.com/35470
Change-Id: I6b7ae9bb96ca099dc55bfdc8fddfa768eab060a2
Reviewed-on: https://dart-review.googlesource.com/c/87965
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Auto-Submit: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-12-27 11:17:24 +00:00

16 lines
323 B
Dart

// Copyright (c) 2018, 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.
class A<X> {
foo<Y extends X>() {}
}
class B extends A<dynamic> {}
bar(B b) {
b.foo();
}
main() {}