Skip to content

Commit

Permalink
Can't use \() yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Sep 10, 2024
1 parent 299ae86 commit 9cfbd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-constructor.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ test_that("can create constructors with missing or lazy defaults", {
),

# dynamic property, not a constructor argument
age = new_property(class = class_any, getter = \(self) {
age = new_property(class = class_any, getter = function(self) {
Sys.Date() - self@birthdate
})
)
Expand Down

0 comments on commit 9cfbd6e

Please sign in to comment.