Skip to content

warning: Ambiguous first argument #3946

@yamam

Description

@yamam

Environment

jruby 9.1.0.0 - 9.1.2.0

Expected Behavior

$ jruby -we 'p({x:-1})'
-e:1: warning: Ambiguous first argument; make sure.
{:x=>-1}

Actual Behavior

jruby 9.0.5.0

$ jruby -we 'p({x:-1})'
{:x=>-1}

ruby 2.3.1

$ ruby -we 'p({x:-1})'
{:x=>-1}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions