RConsortium / S7

S7: a new OO system for R
https://rconsortium.github.io/S7
Other
386 stars 32 forks source link

Don't require two property names #371

Closed hadley closed 8 months ago

hadley commented 10 months ago
library(S7)
foo <- new_class("foo", properties = list(new_property(name = "bar")))
#> Error: `property[[1]]` is missing a name

Created on 2023-09-28 with reprex v2.0.2

Just need to check for this case in as_property().