[nem-en] Simple Code Causes Error
Michal Moskal
michal.moskal at gmail.com
Sat Dec 3 19:37:54 CET 2005
On 12/3/05, Kenneth Ismert <kismert at sbcglobal.net> wrote:
> I was getting errors in a certain segment of code, and reduced it to
> this:
>
> def i : int = 42;
> def s : string = i.ToString;
The problem is you missed () after ToString.
> It fails whether you use explicit types or not.
>
> I get errors that say (in part):
>
> "method System.Int32.ToString() : string was expected to have type
> void -> string, while it has got void -> string" ...
But this is obviously a bug.
--
Michal Moskal,
http://nemerle.org/~malekith/
More information about the devel-en
mailing list