Skip to content

Support @nosideeffects all code (not just externs)  #2256

@mhevery

Description

@mhevery

There are many scenarios where the developer knows that code has no side-effects but the CC fails to detect it and retains the code.

CC already has @nosideeffects annotation, but that one only works in externs file. Could we make it work in normal code as well?

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