Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted parens does not inherit from call #24

Open
hadley opened this issue Nov 22, 2019 · 0 comments
Open

Quoted parens does not inherit from call #24

hadley opened this issue Nov 22, 2019 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@hadley
Copy link
Member

hadley commented Nov 22, 2019

p. <- quote((.))
sloop::s3_class(p.)
#> [1] "("    "call"

foo <- function(x) UseMethod("foo")
foo.call <- function(x) "produced inside foo.call"

foo(p.)
#> Error in UseMethod("foo"): no applicable method for 'foo' applied to an object of class "("
`foo.(` <- function(x) "produced inside foo.("
foo(p.)
#> [1] "produced inside foo.("

Created on 2019-11-22 by the reprex package (v0.3.0)

@hadley hadley changed the title Quoted parens called does not inherit from call Quoted parens does not inherit from call Nov 22, 2019
@hadley hadley added the bug an unexpected problem or unintended behavior label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant