-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fasta] Check type arguments in method invocations while doing inference
Fixes #34899 Bug: http://dartbug.com/34899 Change-Id: I4db7612925d0938cc6ec381c4de8073d50d61aac Reviewed-on: https://dart-review.googlesource.com/c/81266 Commit-Queue: Peter von der Ahé <[email protected]> Reviewed-by: Peter von der Ahé <[email protected]> Auto-Submit: Dmitry Stefantsov <[email protected]>
- Loading branch information
1 parent
d693742
commit cf0a99a
Showing
7 changed files
with
87 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
library; | ||
import self as self; | ||
import "dart:core" as core; | ||
import "dart:async" as asy; | ||
|
||
class Foo<T extends core::Object = dynamic> extends core::Object { | ||
final field () → asy::Future<dynamic> quux; | ||
generic-covariant-impl field self::Foo::T t; | ||
constructor •(() → asy::Future<dynamic> quux, self::Foo::T t) → self::Foo<self::Foo::T> | ||
: self::Foo::quux = quux, self::Foo::t = t, super core::Object::•() | ||
; | ||
method call() → asy::Future<self::Foo::T> | ||
return this.{self::Foo::quux}().{asy::Future::then}<self::Foo::T>((dynamic _) → self::Foo::T => this.{self::Foo::t}); | ||
} | ||
class Bar extends core::Object { | ||
field self::Foo<self::Baz> qux = null; | ||
synthetic constructor •() → self::Bar | ||
: super core::Object::•() | ||
; | ||
method quuz() → asy::Future<void> | ||
return this.{self::Bar::qux}().{asy::Future::then}<self::Grault>((self::Baz baz) → self::Grault => this.{self::Bar::corge}(baz)).{asy::Future::then}<void>((self::Grault grault) → void => this.{self::Bar::garply}(grault)); | ||
method corge(self::Baz baz) → self::Grault | ||
return null; | ||
method garply(self::Grault grault) → void {} | ||
} | ||
class Baz extends core::Object { | ||
synthetic constructor •() → self::Baz | ||
: super core::Object::•() | ||
; | ||
} | ||
class Grault extends core::Object { | ||
synthetic constructor •() → self::Grault | ||
: super core::Object::•() | ||
; | ||
} | ||
static method main() → dynamic {} |
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