Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv15372/src/bossa/syntax
Modified Files:
Pattern.java
Log Message:
Updated the error message.
Index: Pattern.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Pattern.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** Pattern.java 20 Feb 2003 01:27:51 -0000 1.38
--- Pattern.java 20 Feb 2003 15:09:34 -0000 1.39
***************
*** 117,122 ****
tc = typeConstructor.resolveToTC(scope);
if (exactlyAt && TypeConstructors.isInterface(tc))
! User.error(typeConstructor.location(), "Pattern #"+typeConstructor.toString()+
! " can never be matched because instances of an interface don't exist.");
typeConstructor = null;
}
--- 117,124 ----
tc = typeConstructor.resolveToTC(scope);
if (exactlyAt && TypeConstructors.isInterface(tc))
! User.error
! (typeConstructor.location(),
! "Pattern #" + typeConstructor +
! " cannot be matched because interfaces do not have direct instances.");
typeConstructor = null;
}
|