Member access inside a compound literal ignores the operand's type #45

Closed
opened 2026-10-08 18:43:07 +02:00 by alex-eg · 0 comments
Owner

With self a (* pb), #(pb : (. self p) (. self p) true) emits
self.p, not self->p. The same (. self p) outside a literal is
right. Bound to a local first, it works.


Found with sexc dfafe8b while building vs-map-viewer (from its Sex-field-notes.org).

With `self` a `(* pb)`, `#(pb : (. self p) (. self p) true)` emits `self.p`, not `self->p`. The same `(. self p)` outside a literal is right. Bound to a local first, it works. --- Found with sexc `dfafe8b` while building vs-map-viewer (from its `Sex-field-notes.org`).
alex-eg added the bug label 2026-10-08 18:43:07 +02:00
Sign in to join this conversation.