-
Notifications
You must be signed in to change notification settings - Fork 66
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
Darttype.element as ClassElement, but element2 was prompted after the upgrade #374
Comments
CC @scheglov |
|
How should DartType be converted to InterfaceType? |
TypeChecker(List).isExactly((ParameterElement.type as InterfaceElement))
error => type 'ParameterElementImpl' is not a subtype of type 'InterfaceElement' in type cast |
You don't convert, you check if it is |
Thank you for answering |
Darttype. element as ClassElement
Not sure how to convert to ClassElement after using element2 ?
The text was updated successfully, but these errors were encountered: