November 24, 2009 Error: function object.Object.dispose () does not match parameter types (Event) | ||||
---|---|---|---|---|
| ||||
Attachments:
| tango trunk add a method name dispose to Object. now build dmd-win32 will throw this: custom\TableCursor.d(211): Error: function object.Object.dispose () does not match parameter types (Event) custom\TableCursor.d(211): Error: expected 0 arguments, not 1 for non-variadic function type void() rename all the dispose to Dispose will fiex this issure. |
November 24, 2009 Re: Error: function object.Object.dispose () does not match parameter types (Event) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Long Chang | On 11/24/09 12:49, Long Chang wrote:
> tango trunk add a method name dispose to Object. now build dmd-win32
> will throw this:
>
> custom\TableCursor.d(211): Error: function object.Object.dispose () does
> not match parameter types (Event)
> custom\TableCursor.d(211): Error: expected 0 arguments, not 1 for
> non-variadic function type void()
>
>
> rename all the dispose to Dispose will fiex this issure.
>
It would be nice to have the dispose methods to be called automatically. What about adding "alias super.dispose dispose" or something to overload the dispose method.
|
Copyright © 1999-2021 by the D Language Foundation