[Nice-commit] Nice/src/bossa/syntax Pattern.java,1.44,1.45
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-16 18:39:04
|
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv2305/src/bossa/syntax
Modified Files:
Pattern.java
Log Message:
Fix a typo in the error message for dispatch on primitive types,
and make it really print the location of the error.
Index: Pattern.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Pattern.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** Pattern.java 1 Apr 2003 20:24:57 -0000 1.44
--- Pattern.java 16 Apr 2003 18:38:58 -0000 1.45
***************
*** 394,398 ****
tc == PrimitiveType.charTC ||
tc == PrimitiveType.byteTC) )
! User.error(typeConstructor,"A pattern cannot have a primitive type that is different from the declararion.");
}
--- 394,398 ----
tc == PrimitiveType.charTC ||
tc == PrimitiveType.byteTC) )
! User.error(location, "A pattern cannot have a primitive type that is different from the declaration.");
}
|