Skip to content

Verify that TFA inferred types are as specific as Dart types #55828

Open
@osa1

Description

@osa1

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 as int, but it's invalid (a bug in TFA) to infer it as Object?.

This would catch bugs like flutter/flutter#148617 (comment), and maybe also help improve inferred types in cases like #53921 (comment).

cc @alexmarkov

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bugvm-tfa

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions