Skip to content

Sometimes failing to typecheck template parameters inside record types #2867

@lauraharker

Description

Activity

lauraharker

lauraharker commented on Mar 28, 2018

@lauraharker
ContributorAuthor

Turns out this is because the TemplateTypeMapReplacer class extends ModificationVisitor and intentionally (?) sets a boolean property in ModificationVisitor's constructor telling it not to visit properties.

public ModificationVisitor(JSTypeRegistry registry, boolean visitProperties) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @lauraharker

        Issue actions

          Sometimes failing to typecheck template parameters inside record types · Issue #2867 · google/closure-compiler