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

Forbid wrong form of injections #13

Open
Drup opened this issue Jun 29, 2016 · 0 comments
Open

Forbid wrong form of injections #13

Drup opened this issue Jun 29, 2016 · 0 comments

Comments

@Drup
Copy link
Member

Drup commented Jun 29, 2016

This kind of functions should be forbidden with a decent error message:

let%client f x = ~%( [%client x] )

Right now, it crashes, but it's not obvious why.
The good way to check for this is to walk the typedtree after typechecking, register the (server) env when entering a client scope and check that each identifier mentioned in a server slice (inside the client scope) is defined in the outer env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant