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

Type pattern expander in custom syntax class has confusing error #7

Open
iitalics opened this issue Apr 22, 2017 · 0 comments
Open

Comments

@iitalics
Copy link
Collaborator

For some reason, using the generated ~ pattern expanders for types does not work in (define-syntax-class ...). As a simple example,

#lang turnstile

(define-type-constructor List #:arity = 1)

(begin-for-syntax
  (define-syntax-class list-τ
    (pattern (~List _))))

produces the error

pattern: required attribute is not defined: g86
;   in: (pattern (~List _))

I think this has something to do with the temporary generated for use in producing the "Expected _, got: _" error.

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

1 participant