Skip to content

nullish properties with component dot notation #17493

@sacrosanctic

Description

@sacrosanctic

Describe the bug

Right now, it is unclear. It works in the repl and it works when i run pnpm build; node build. But the compiler will complain in certain cases.

If it is supposed to work, we should add docs and maybe adjust the compiler.
If it isnt, we should add linting/type checking for nullish dot notation and change the compiler always error.

Reproduction

REPL

Logs

System Info

.

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions