Skip to content

Problem 06-unions, backdoor #21

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

Closed
Shemrock3267 opened this issue Sep 2, 2022 · 1 comment
Closed

Problem 06-unions, backdoor #21

Shemrock3267 opened this issue Sep 2, 2022 · 1 comment

Comments

@Shemrock3267
Copy link

Hey @mattpocock .
Thanks for your effort and time spent on this course.
I just want to point out that you can fool typechecker in this exercise with simply typing this, and it will pass the test.
role: string[] instead of role: 'admin' | 'user' | 'super-admin'

@mattpocock
Copy link
Collaborator

Thanks!

I'm not too interested on making every exercise exactly bulletproof. As I've said in other issues, the exercises will be accompanied by videos which make the intent of each problem/solution clear.

@mattpocock mattpocock closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
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

No branches or pull requests

2 participants