Skip to content

Quoted parens does not inherit from call #24

Description

@hadley
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)

Activity

  1. changed the title [-]Quoted parens called does not inherit from call[/-] [+]Quoted parens does not inherit from call[/+] on Nov 22, 2019
  2. added
    bugan unexpected problem or unintended behavior
    on Oct 30, 2023
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

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions