Verify that TFA inferred types are as specific as Dart types #55828
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
type-enhancement
A request for a change that isn't a bug
vm-tfa
It would be helpful, for catching any bugs in TFA's inferred types, if we could verify that TFA always infers more precise types than the Dart types of analyzed members.
For example, if the Dart return type of a member is
Object
, it's valid to infer the actual return type of it asint
, but it's invalid (a bug in TFA) to infer it asObject?
.This would catch bugs like flutter/flutter#148617 (comment), and maybe also help improve inferred types in cases like #53921 (comment).
cc @alexmarkov
The text was updated successfully, but these errors were encountered: