boo-lang / boo

The Boo Programming Language.
BSD 3-Clause "New" or "Revised" License
874 stars 148 forks source link

External callable type with a ref parameter can't be assigned to #106

Open masonwheeler opened 9 years ago

masonwheeler commented 9 years ago

Assembly 1:

callable FooDelegate(ref int)

Assembly 2: class Foo: private del as FooDelegate

   private def DoFoo(ref int):
      pass

   def constructor():
      del = self.DoFoo

Expected: This should work Observed: Cannot convert 'callable(ref int) as void' to 'FooDelegate'. (BCE0022)