Skip to content

Dynamic properties are not checked for consistency with parent #708

Closed

Description

@hadley
foo := new_class(properties = list(x = class_integer))
foo2 := new_class(
  parent = foo,
  properties = list(
    x = new_property(
      class_character,
      getter = function(self) self@x,
      setter = function(self, value) {
        self@x <- value
        self
      }
    )
  )
)

This seems like a violation of #352, but was deliberately carved out of #691: https://github.com/RConsortium/S7/pull/691/changes#diff-db883c7d4a79cfb06f9b46be422e9619820b841e80f70a2592cad16653adebe6R444-R448

Activity

  1. added a commit that references this issue on Oct 2, 2026
    57a4b33
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