Skip to content

FR: Avoid 'incomplete alias created' warning if aliasing is known to be safe #3428

@lauraharker

Description

@lauraharker

See the most recent comments on #2595.

Right now CollapseProperties warns for aliasing a namespace if any properties on that namespace may be unsafely collapsed. (i.e. if there are constructors or enums on the namespace)

In cases like #2595, though, the only usage of the aliased namespace is to access a function property (which is not collapsible). The compiler should be able to determine that this is safe and not warn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal-issue-createdAn internal Google issue has been created to track this GitHub issuetriage-doneHas been reviewed by someone on triage rotation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions