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

struct #:mutable field option #1331

Open
bennn opened this issue Jun 12, 2023 · 0 comments
Open

struct #:mutable field option #1331

bennn opened this issue Jun 12, 2023 · 0 comments

Comments

@bennn
Copy link
Contributor

bennn commented Jun 12, 2023

What version of Racket are you using?

$ racket --version
Welcome to Racket v8.9.0.3 [cs].

What program did you run?

;#lang racket
;(struct node (val [next #:mutable]))

#lang typed/racket
(struct node ([val : Real] [next : node #:mutable]))

What should have happened?

No error

If you got an error message, please include it here.

struct: unexpected term
  at: #:mutable
  in: (struct node ((val : Real) (next : node #:mutable)))
  parsing context: 
   while parsing [field-name : type]
    term: (next : node #:mutable)
    location: /home/ben/foo.rkt:5:27
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