-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core
Milestone
Description
Describe the bug
See this discussion: https://discord.com/channels/1247582902930116749/1375144881739272272
According to the discussion:
array.create(type) === array.create(type);ought to yield true, but always yields false- creating arrays using
${context.program}.array.create(type);yields an array instance without NameSpace and using these as type on ModelProperties will result in errors when emitting OAS or JSONSchema, due to duplicate names (likely icw @visibility options?)
Reproduction
See https://discord.com/channels/1247582902930116749/1375144881739272272
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core