You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pigeon][reland]enable treat warnings as errors for swift code in unit test (#3901)
`as [Any?]` here is actually not a "cast", but a "type annotation". An equivalent fix can be:
```
let arg: [Any?] = [nil]
let inputEncoded = binaryMessenger.codec.encode(arg)
```
Fixes
```
heterogeneous collection literal could only be inferred to '[Any?]'; add explicit type annotation if this is intentional
```
Which was introduced in #3889 and later got reverted.
See flutter/flutter#126006 for more details about some interesting research on this warning.
*List which issues are fixed by this PR. You must list at least one issue.*
Fixesflutter/flutter#126006
*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
0 commit comments