Skip to content

Accept record projections without requiring type in Top #1011

@oskgo

Description

@oskgo

MRE of current error:

theory T.
type t= {f: unit}.
op e: t.
end T.
op test = T.e.`f.

I believe the following is an example of how this is currently being worked around.

(* This is a hack *)
op kstp st = st.`kst.

The code already works if t is present in the top level scope:

theory T.
type t= {f: unit}.
op e: t.
end T.
import T.
op test = T.e.`f.
theory T.
type t.
op e: t.
end T.
type t' = {f: unit}.
clone T as T' with type t <- t'.
op test = T'.e.`f.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions