[#75225] [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7) — k@...
Issue #12324 has been reported by Kazuki Yamaguchi.
6 messages
2016/04/27
[#78693] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
k@rhe.jp wrote:
[#78701] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Kazuki Yamaguchi <k@...>
2016/12/17
On Sat, Dec 17, 2016 at 01:31:12AM +0000, Eric Wong wrote:
[#78702] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
Kazuki Yamaguchi <k@rhe.jp> wrote:
[ruby-core:74982] [Ruby trunk Bug#12073] local variable interferes with keyword arguments
From:
nagachika00@...
Date:
2016-04-16 19:43:06 UTC
List:
ruby-core #74982
Issue #12073 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE ruby_2_3 r54618 merged revision(s) 53834,53835,53836. ---------------------------------------- Bug #12073: local variable interferes with keyword arguments https://bugs.ruby-lang.org/issues/12073#change-58108 * Author: Josh Cheek * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin13] * Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE ---------------------------------------- This code causes a syntax error: ~~~ruby def a(b:) b end a = 1 a b: 9 # !> program.rb:5: syntax error, unexpected ':', expecting end-of-input # !> a b: (9) # !> ^ ~~~ However, if we remove the local assignment it works ~~~ruby def a(b:) b end a b: 9 # => 9 ~~~ Or if we use parentheses it works ~~~ruby def a(b:) b end a = 1 a(b: 9) # => 9 ~~~ Or if we use non-keyword arguments it works ~~~ruby def a(b) b end a = 1 a 9 # => 9 ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>