[#49270] [Ruby trunk - Feature #11558] Time related C APIs — akr@...
SXNzdWUgIzExNTU4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgQWtpcmEgVGFuYWth
7 messages
2015/09/30
[#49275] Re: [Ruby trunk - Feature #11558] Time related C APIs
— KOSAKI Motohiro <kosaki.motohiro@...>
2015/09/30
Pj4g5pei5a2Y44Gu6Z2e5YWs6ZaLQVBJ44KS5YWs6ZaL44GX44Gm44GP44Gg44GV44GE44CCDQo+
[#49278] Re: [Ruby trunk - Feature #11558] Time related C APIs
— Tanaka Akira <akr@...>
2015/10/01
MjAxNeW5tDEw5pyIMeaXpSA3OjAzIEtPU0FLSSBNb3RvaGlybyA8a29zYWtpLm1vdG9oaXJvQGdt
[ruby-dev:49266] [Ruby trunk - Bug #10653] do-end block in ternary operator is syntax error
From:
nagachika00@...
Date:
2015-09-29 18:22:40 UTC
List:
ruby-dev #49266
Issue #10653 has been updated by Tomoyuki Chikanaga.
After backporting r50409 and r51617, TestSyntax#test_block_after_cond failed.
----------------------------------------
Bug #10653: do-end block in ternary operator is syntax error
https://bugs.ruby-lang.org/issues/10653#change-54317
* Author: Shinta Koyanagi
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
- For example
```
ruby -v -e 'true ? 1.tap do |n| p n end : 0'
```
- Result by 2.1.5
```
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
1
```
- Result by 2.2.0
```
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
-e:1: syntax error, unexpected keyword_do_cond, expecting ':'
true ? 1.tap do |n| p n end : 0
^
-e:1: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
true ? 1.tap do |n| p n end : 0
^
```
--
https://bugs.ruby-lang.org/