commit | 6bd59cdb8fb55e9b8fc59ad02cd61c808a7c464c | [log] [tgz] |
---|---|---|
author | hellohuanlin <41930132+hellohuanlin@users.noreply.github.com> | Wed May 03 20:25:06 2023 -0700 |
committer | GitHub <noreply@github.com> | Thu May 04 03:25:06 2023 +0000 |
tree | d15eed09db129a619d83b43bff5d9ef6186094cb | |
parent | d9f70411186f3fd93eede94ec6bba38c0d451b3f [diff] |
[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 https://github.com/flutter/packages/pull/3889 and later got reverted. See https://github.com/flutter/flutter/issues/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.* Fixes https://github.com/flutter/flutter/issues/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].*
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: