Skip to content

Commit 0c8eddc

Browse files
Merge pull request #135 from crystal-lang-tools/nobody/read-instance-var
Add test for multiple ReadInstanceVar in block
2 parents ee7bc52 + 2a5e1c7 commit 0c8eddc

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)