Skip to content

Commit 40638e6

Browse files
Add test for multiple ReadInstanceVar in block
crystal-lang/crystal#16059
1 parent 76afc1f commit 40638e6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/corpus/expressions.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5541,6 +5541,25 @@ B = /== (.*) ==/
55415541
rhs: (regex
55425542
(literal_content))))
55435543

5544+
==========================
5545+
multiple read instance var
5546+
==========================
5547+
5548+
foo.try &.@bar.@baz
5549+
5550+
---
5551+
5552+
(expressions
5553+
(call
5554+
receiver: (identifier)
5555+
method: (identifier)
5556+
arguments: (argument_list
5557+
(block_argument
5558+
(implicit_object_call
5559+
receiver: (implicit_object_call
5560+
(instance_var))
5561+
(instance_var))))))
5562+
55445563
===========
55455564
loc pragmas
55465565
===========

0 commit comments

Comments
 (0)