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

Support void type in RLC and Modular #2521

Merged
merged 16 commits into from
May 16, 2024
Merged

Conversation

MaryGao
Copy link
Member

@MaryGao MaryGao commented May 14, 2024

fixes #2492

@MaryGao MaryGao changed the title Support void type Support void type in RLC and Modular May 14, 2024
@MaryGao MaryGao marked this pull request as ready for review May 15, 2024 13:39
assert.fail("Should throw diagnostic errors");
} catch (e: any) {
assert.equal(e[0]?.code, "@azure-tools/typespec-ts/invalid-schema");
assert.equal(e[0]?.message, "Couldn't get schema for type Intrinsic");
Copy link
Member

Choose a reason for hiding this comment

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

can this error message be more specific?

Copy link
Member Author

@MaryGao MaryGao May 16, 2024

Choose a reason for hiding this comment

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

there are type relevant info actually and i could add the assertion here.

Copy link
Member Author

Choose a reason for hiding this comment

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

l leverage the existing rule invalid-schema for this check and let me know if you think we need a new linter for void.

@MaryGao MaryGao requested a review from qiaozha May 16, 2024 06:43
@MaryGao MaryGao merged commit bf90528 into Azure:main May 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support void type in RLC and modular
3 participants