From 6ab71a8598c6eece25975ca262eb880462e47b06 Mon Sep 17 00:00:00 2001 From: Zack Deveau Date: Wed, 27 Jul 2022 14:31:41 -0400 Subject: Port gen_checktype to the new IR assembler backend (https://github.com/Shopify/ruby/pull/343) --- bootstraptest/test_yjit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 966a5f3002..d82f3de95e 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -3066,3 +3066,11 @@ assert_equal '10', %q{ a.length } + +# checktype +assert_equal 'false', %q{ + def function() + [1, 2] in [Integer, String] + end + function() +} -- cgit v1.2.1