Skip to content

Support void type in RLC and Modular#2521

Merged
MaryGao merged 16 commits intoAzure:mainfrom
MaryGao:support-void-type
May 16, 2024
Merged

Support void type in RLC and Modular#2521
MaryGao merged 16 commits intoAzure:mainfrom
MaryGao:support-void-type

Conversation

@MaryGao
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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