ruby-changes:56252
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 15:10:16 +0900 (JST)
Subject: [ruby-changes:56252] Nobuyoshi Nakada: f8b64e5f2c (trunk): Use assigned local variable
https://git.ruby-lang.org/ruby.git/commit/?id=f8b64e5f2c From f8b64e5f2cea508d1ea93966e2039b394715bae7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 15:04:25 +0900 Subject: Use assigned local variable diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 9f58fef..ac3f9a3 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -387,7 +387,7 @@ class TestISeq < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_iseq.rb#L387 type = ary[9] name = ary[5] line = ary[13].first - case ary[9] + case type when :method assert_equal "foo", name assert_equal 3, line -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/