Nice/src/bossa/syntax compilation.nice,1.9,1.10

Daniel Bonniot <[email protected]> Thu, 16 Jun 2005 16:12:22 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv631/src/bossa/syntax

Modified Files:
	compilation.nice 
Log Message:
Really find out the first argument to create a meaningful error message
(a functional value was printed instead).


Index: compilation.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/compilation.nice,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** compilation.nice	21 May 2005 16:24:58 -0000	1.9
--- compilation.nice	16 Jun 2005 16:12:19 -0000	1.10
***************
*** 206,210 ****
    String msg = m + " is a native method.\n";
  
!   if (maybeNull(firstArgument) == null)
      msg += "It cannot be implemented without dispatch on the first argument";
    else
--- 206,212 ----
    String msg = m + " is a native method.\n";
  
!   ?mlsub.typing.TypeConstructor firstArgument = alt.getPatterns()[0].getTC();
! 
!   if (firstArgument == null)
      msg += "It cannot be implemented without dispatch on the first argument";
    else



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click