Skip to content

[Bug]: Function could not work correctly with mutation #10746

@tadelesh

Description

@tadelesh

Describe the bug

The function should be called for the mutated type graph when combining use with decorator, etc. Currently, it seems the function will only be called once for the original type graph, which caused the decorator logic in mutation get the wrong type graph from function result. The original issue here.

Reproduction

Playground

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompiler:coreIssues for @typespec/compiler

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions