Skip to content

Commit 2d44be3

Browse files
authored
[prism] add a testcase for correctly binding masgns (#775)
1 parent 861d89e commit 2d44be3

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def foo
2+
some, method = self.method()
3+
some, method = self.field.method
4+
end
5+
6+
def bar
7+
(other, method) = self.method()
8+
(other, method) = self.field.method
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def foo
2+
some, method = self.method()
3+
some, method = self.field.method
4+
end
5+
6+
def bar
7+
(other, method) = self.method()
8+
(other, method) = self.field.method
9+
end

tests/fixtures_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const DISABLED_RIPPER_TESTS: &[&'static str] = &[
1515
// https://github.com/fables-tales/rubyfmt/issues/474
1616
"small_args_forwarding_additional_args",
1717
"small_alias_global_var",
18+
"small_multi_variable_binding",
1819
];
1920

2021
fn main() -> io::Result<()> {

0 commit comments

Comments
 (0)