<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,4 +42,15 @@ module VariablesSpecs
   def self.reverse_foo(a, b)
     return b, a
   end
+
+  class ArrayLike
+    def initialize(array)
+      @array = array
+    end
+
+    def to_a
+      @array
+    end
+  end
+
 end</diff>
      <filename>language/fixtures/variables.rb</filename>
    </modified>
    <modified>
      <diff>@@ -152,6 +152,10 @@ describe &quot;Basic assignment&quot; do
     a,b,*c = *[*[1,2]]; [a,b,c].should == [1, 2, []]
   end
 
+  it &quot;calls to_a on the given argument when using a splat&quot; do
+    a,b = *VariablesSpecs::ArrayLike.new([1,2]); [a,b].should == [1,2]
+  end
+
   it &quot;supports the {|r,| } form of block assignment&quot; do
     f = lambda {|r,| r.should == []}
     f.call([], *[])</diff>
      <filename>language/variables_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>046179ec13ba7729dc8d269ee8095a4e09f7ffc6</id>
    </parent>
  </parents>
  <author>
    <name>Dirkjan Bussink</name>
    <email>d.bussink@gmail.com</email>
  </author>
  <url>http://github.com/rubyspec/rubyspec/commit/b207362c308e7f7d71c83a4496fbe070ca5c5794</url>
  <id>b207362c308e7f7d71c83a4496fbe070ca5c5794</id>
  <committed-date>2009-11-02T12:24:09-08:00</committed-date>
  <authored-date>2009-11-02T12:24:09-08:00</authored-date>
  <message>Add spec for splat calling to_a on the given argument</message>
  <tree>7598b8625b81a5bec15d10fae36a227cf86b9617</tree>
  <committer>
    <name>Dirkjan Bussink</name>
    <email>d.bussink@gmail.com</email>
  </committer>
</commit>
