[ruby-core:78107] [Ruby trunk Bug#12929] ternary should look ahead w/in a block (and not care about newlines)
From:
ag4ve.us@...
Date:
2016-11-13 15:14:05 UTC
List:
ruby-core #78107
Issue #12929 has been reported by shawn wilson. ---------------------------------------- Bug #12929: ternary should look ahead w/in a block (and not care about newlines) https://bugs.ruby-lang.org/issues/12929 * Author: shawn wilson * Status: Open * Priority: Normal * Assignee: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- foo = (bar ? 0 : 1) # works foo = (bar ? 0 : 1) # works foo = (bar ? 0 : 1) # doesn't work -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>