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

Detect fn main<>() #669

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Detect fn main<>() #669

wants to merge 1 commit into from

Conversation

Havvy
Copy link

@Havvy Havvy commented Jan 9, 2021

You can use an empty generics container on any function, including main. Definitely not idiomatic, but also seemingly trivial to support.

You can use an empty generics container on any function, including main. Definitely not idiomatic, but also seemingly trivial to support.
@shepmaster
Copy link
Member

Seems reasonable; could you add a test to ui/frontend/selectors/index.spec.ts?

You happen to be the first PR after I reworked CI a bit, and I see I've broken it for people other than myself; feel free to ignore any test failures except for "Build frontend" and I'll work on fixing those when I can.

@fee1-dead
Copy link
Member

fee1-dead commented Dec 23, 2021

What about fn main<>() where {}? It's cursed but actually valid.

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.

3 participants