forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that implicit type arguments satisfy bounds.
This required adding an implementation of super-bounded types to the analyzer. We really could use some more tests to verify that we disallow super-bounded types in all the appropriate locations, but allow it in other cases (it seems that there are no language_2 tests to verify this). To avoid churn, I'll wait until I have confirmation that my reasoning is correct in flutter#34583 before submitting test cases. Fixes flutter#34532. Fixes flutter#34560. Change-Id: I3c5def60bcac0d31b56bead31cb1aab445f18e96 Reviewed-on: https://dart-review.googlesource.com/76280 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
- Loading branch information
1 parent
3b511b9
commit b1a5415
Showing
10 changed files
with
210 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// 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 Foo<T> {} | ||
|
||
class Bar<T extends Foo<T>> {} | ||
|
||
// Should be error here, because Bar completes to Bar<Foo> | ||
class Baz extends /*@compile-error=unspecified*/ Bar {} | ||
|
||
void main() {} |
Oops, something went wrong.