Skip to content

Commit

Permalink
Fix #3245. Parser fails on expresion
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Aug 11, 2015
1 parent 03ea799 commit 48ad16e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/parser/ParserSupport.java
Expand Up @@ -536,6 +536,8 @@ protected Node makeNullNil(Node node) {

private Node cond0(Node node) {
checkAssignmentInCondition(node);

if (node == null) return new NilNode(lexer.getPosition());

Node leftNode;
Node rightNode;
Expand Down
1 change: 1 addition & 0 deletions test/mri.index
Expand Up @@ -101,6 +101,7 @@ ruby/test_unicode_escape.rb
ruby/test_variable.rb
ruby/test_whileuntil.rb
ruby/test_yield.rb
ruby/test_not.rb

test_pp.rb
test_cmath.rb
Expand Down

0 comments on commit 48ad16e

Please sign in to comment.