I think it would be useful if you could do this: ``` r library(S7) foo <- new_class("foo", properties = list(x = new_property(class_numeric, default = 1))) foo2 <- new_class("foo2", foo, properties = list(x = new_property(class_numeric, default = 2))) foo2()@x #> [1] 1 ``` <sup>Created on 2025-09-25 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>
Activity
fithisux commentedon Oct 7, 2025
I tested it in my Windows 10 x64 with R 4.5.1 and gives exactly that.
Maybe you mean 2?
Because as a newcomer to S7, the above seems completely counterintuitive
hadley commentedon Oct 7, 2025
This is a bug report; 1 is the incorrect answer.
ltuijnder commentedon Oct 28, 2025
This is a duplicate of: #467