Skip to content

Commit a975466

Browse files
pqCommit Queue
authored andcommitted
[element model] fix collection_methods_unrelated_type
Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: Ic3a6cdb344266b47a8f6b364298a673e71877595 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393000 Commit-Queue: Phil Quitslund <[email protected]> Auto-Submit: Phil Quitslund <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 27b52a3 commit a975466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/linter/lib/src/rules/collection_methods_unrelated_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class _Visitor extends SimpleAstVisitor<void> {
259259

260260
case _ExpectedArgumentKind.assignableToIterableOfTypeArgument:
261261
var iterableType =
262-
collectionType.asInstanceOf(typeProvider.iterableElement);
262+
collectionType.asInstanceOf2(typeProvider.iterableElement2);
263263
if (iterableType != null &&
264264
!typeSystem.isAssignableTo(argumentType, iterableType)) {
265265
rule.reportLint(argument, arguments: [

0 commit comments

Comments
 (0)