Comment in sum considered as malformed variant #76

Open
opened 2026-11-03 22:29:29 +01:00 by pkulev · 0 comments
Collaborator

The following snippet:

(pub sum charge-flight
  "How that thing flies."
  ((hitscan ((from Vector2)
             (to Vector2)
             (width float)))
   ;; TODO: rockets probably have changing acceleration.
   (projectile ((pos Vector2)
                (vel Vector2)
                (radius float)))))

cause the following error:

Error: /Users/most/proj/j26/src/charge.sex:14: a variant is (name (fields ...)): (comment "; TODO: rockets probably have changing acceleration.")
The following snippet: ```scheme (pub sum charge-flight "How that thing flies." ((hitscan ((from Vector2) (to Vector2) (width float))) ;; TODO: rockets probably have changing acceleration. (projectile ((pos Vector2) (vel Vector2) (radius float))))) ``` cause the following error: ``` Error: /Users/most/proj/j26/src/charge.sex:14: a variant is (name (fields ...)): (comment "; TODO: rockets probably have changing acceleration.") ```
pkulev added the bug label 2026-11-03 22:29:29 +01:00
Sign in to join this conversation.