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

Use banned functions to suggest why certain functions are unsupported at certain scopes #808

Closed
anthony-c-martin opened this issue Nov 3, 2020 · 2 comments
Labels
enhancement New feature or request error-message
Milestone

Comments

@anthony-c-martin
Copy link
Member

Example repro here.

targetScope = 'tenant'

// this is blocked, but the error message could be clearer
var myResGroup = resourceGroup('abc', 'def')
@anthony-c-martin anthony-c-martin added the enhancement New feature or request label Nov 3, 2020
@ghost ghost added the Needs: Triage 🔍 label Nov 3, 2020
@alex-frankel alex-frankel added this to the v0.3 milestone Nov 5, 2020
@majastrz
Copy link
Member

Btw, it occurs to me that we can emulate banned overloads by conditionally setting the return type of a particular overload to an error type with the appropriate error message.

@anthony-c-martin
Copy link
Member Author

This is no longer repro-able following #1339

@ghost ghost locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request error-message
Projects
None yet
Development

No branches or pull requests

3 participants