gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Bug report.... offending code works outside of procedure, but insi


From: Dragiša Durić
Subject: [Gm2] Bug report.... offending code works outside of procedure, but inside - not.
Date: Sun, 25 Jul 2010 07:36:55 +0200

gm2 -fiso -c TestCase.mod
TestCase.mod:15:5: error: assignment designator 'where' of type 'Where'
is a variable and expression 'AlwaysTrue' of type 'BOOLEAN' are
incompatible

==================
MODULE TestCase;

PROCEDURE AlwaysTrue(): BOOLEAN;
  BEGIN
    RETURN TRUE;
  END AlwaysTrue;

TYPE
  Where = PROCEDURE (): BOOLEAN;

PROCEDURE DoIt();
  VAR
    where: Where;
  BEGIN
    where := AlwaysTrue;
  END DoIt;

END TestCase.

-- 
Dragiša Durić <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]