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

Define method context from a custom contract #31

Closed
TobiaszCudnik opened this issue Mar 11, 2012 · 3 comments
Closed

Define method context from a custom contract #31

TobiaszCudnik opened this issue Mar 11, 2012 · 3 comments

Comments

@TobiaszCudnik
Copy link

@TobiaszCudnik TobiaszCudnik commented Mar 11, 2012

Define method context (this) from a custom contract. Below ways i've tried to use, but none worked.

TCustomContract = ? { a: Num }
foo :: (@{ TCustomContract }) -> Any
foo :: (@TCustomContract) -> Any
foo = ->
@disnet
Copy link
Owner

@disnet disnet commented Mar 12, 2012

Added grammar support so this should work now. It's failing on node at the moment but it works in Firefox. Might be an old V8 bug.

@disnet
Copy link
Owner

@disnet disnet commented Mar 12, 2012

Ah! Definitely a V8 bug, I ran into it before: https://github.com/disnet/contracts.coffee/blob/master/test/contracts.coffee#L125

Hopefully node 0.7 fixes that. Will test that out when I get a chance.

@TobiaszCudnik
Copy link
Author

@TobiaszCudnik TobiaszCudnik commented Mar 12, 2012

Thanks for the grammar, but indeed it's still broken on node 0.7.5 (ERROR: illegal access).

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

Successfully merging a pull request may close this issue.

None yet
2 participants