Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

deriving FromSexp and default fields #404

Description

@seanmcl
import KLR.Util
open KLR.Util(FromSexp)

structure pseudo_core_barrier where
  id : UInt32
  header : Int -- := 5
deriving FromSexp

Uncommenting the default field gives

Function expected at
  id
but this term has type
  UInt32

Note: Expected a function because this term is being applied to the argument
  5

Some bug in handling the default values?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions