Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart doesn't have intersection types #20957

Closed
peter-ahe-google opened this issue Sep 15, 2014 · 1 comment
Closed

Dart doesn't have intersection types #20957

peter-ahe-google opened this issue Sep 15, 2014 · 1 comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report

Comments

@peter-ahe-google
Copy link
Contributor

I'm getting these hints from the analyzer:

sdk/lib/_internal/compiler/implementation/resolution/members.dart:2028:49: [ARGUMENT_TYPE_NOT_ASSIGNABLE]The argument type '{BadInterfaceType,TypedefType,InterfaceType,BadTypedefType,MalformedType}' cannot be assigned to the parameter type 'GenericType'
sdk/lib/_internal/compiler/implementation/resolution/members.dart:2850:52: [ARGUMENT_TYPE_NOT_ASSIGNABLE]The argument type '{FunctionElement,ErroneousElement}' cannot be assigned to the parameter type 'VariableElement'

I've processed the --machine format output to be understood by Emacs.

These hints are wrong, and the messages a type expression that doesn't exist in the Dart language.

@bwilkerson
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Medium, Duplicate labels.
Marked as being merged into #20906.

@peter-ahe-google peter-ahe-google added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report labels Sep 15, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants