|
From: | Gaius Mulley |
Subject: | Re: [Gm2] another one, with procedure value being returned, present as of 0.9.8-1.2 |
Date: | Tue, 21 Sep 2010 11:14:33 +0100 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Dragiša Durić <address@hidden> writes: > % gm2 -fiso -c TestCase15.mod > TestCase15.mod:13:5: error: attempting to RETURN a value with an incompatible > type (BOOLEAN) from a function which returns (ErrPROC) > > MODULE TestCase15; > > TYPE > ErrPROC = PROCEDURE(): BOOLEAN; > > PROCEDURE NILErrorProc(): BOOLEAN; > BEGIN > RETURN FALSE; > END NILErrorProc; > > PROCEDURE GetErrorProc(): ErrPROC; > BEGIN > RETURN NILErrorProc; > END GetErrorProc; > > BEGIN > END TestCase15. Hi, now fixed in the latest cvs - many thanks for the bug reports and test code! regards, Gaius
[Prev in Thread] | Current Thread | [Next in Thread] |