Skip to content

deriving FromSexp and default fields #404

@seanmcl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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