[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...
Issue #17664 has been reported by ciconia (Sharon Rosner).
23 messages
2021/02/28
[ruby-core:102664] [Ruby master Bug#11143] it should always be possible to return from an if
From:
usa@...
Date:
2021-02-28 15:04:51 UTC
List:
ruby-core #102664
Issue #11143 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.5: REQUIRED, 2.6: REQUIRED to 2.5: REQUIRED, 2.6: DONE Backported into ruby_2_6 at r67903. ---------------------------------------- Bug #11143: it should always be possible to return from an if https://bugs.ruby-lang.org/issues/11143#change-90658 * Author: bughit (bug hit) * Status: Closed * Priority: Normal * Backport: 2.5: REQUIRED, 2.6: DONE ---------------------------------------- ``` irb(main):001:0> def foo; a = if true then return end end SyntaxError: (irb):1: void value expression ``` it should not matter that you are not producing a value for the if expression, since you are leaving the method immediately. This should also apply to other jumps. -- 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>