Skip to content

"Useless" warnings have file as "null" #5597

@headius

Description

@headius

Pretty sure this used to work. Seems like it's getting a dummy position out of the parser for these nodes. Memory-saving measure gone awry?

[--dev] ~/projects/jruby $ jruby -w -e '1'
null:1: warning: Useless use of a literal in void context.

[--dev] ~/projects/jruby $ jruby -w -e 'defined? 1'
null:1: warning: Useless use of defined? in void context.

This may affect other parser warnings but I did not investigate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions