Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on augment expr #4926

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 31, 2024

pr off #4849 that adds a breaking change that validate that you cannot augment model expression instead of just silently failing

Needs to be rebased when #4849 is merged

@timotheeguerin timotheeguerin added the breaking-change A change that might cause specs or code to break label Oct 31, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 31, 2024

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/compiler
Show changes

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Nov 7, 2024
@timotheeguerin timotheeguerin marked this pull request as ready for review November 7, 2024 16:13
@@ -5165,6 +5165,18 @@ export function createChecker(program: Program, resolver: NameResolver): Checker
target: node.targetType,
}),
);
} else if (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone wants to take over this PR during my leave I think the remaining items are:

  • this probably should also error for union expression
  • add tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markcowl markcowl self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change A change that might cause specs or code to break compiler:core Issues for @typespec/compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants