Skip to content

False positive for library_private_types_in_public_api in private typedefsΒ #60028

@Albert221

Description

@Albert221
typedef _PrivateInt = int;

void publicMethod(_PrivateInt param) {}

This complains about library_private_types_in_public_api.

I'm not using private type. I'm just using a private typedef, but the typedef resolves to a public type. I expect to not trigger this lint with private typedefs.

Dart SDK version: 3.5.3 (stable) (Wed Sep 11 16:22:47 2024 +0000) on "macos_arm64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions