[Nice-commit] Nice/src/bossa/syntax Pattern.java,1.76,1.77
Brought to you by:
bonniot
From: <bo...@us...> - 2003-12-23 11:31:01
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv15643/src/bossa/syntax Modified Files: Pattern.java Log Message: Restore the ability to dispatch on Object. Index: Pattern.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Pattern.java,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** Pattern.java 23 Dec 2003 10:20:40 -0000 1.76 --- Pattern.java 23 Dec 2003 11:30:58 -0000 1.77 *************** *** 124,131 **** if (typeConstructor != null) { ! mlsub.typing.TypeSymbol sym = ! typeConstructor.resolveToTypeSymbol(scope); ! if (sym instanceof TypeConstructor) tc = (TypeConstructor) sym; else --- 124,134 ---- if (typeConstructor != null) { ! TypeSymbol sym = typeConstructor.resolveToTypeSymbol(scope); ! if (sym == TopMonotype.instance) ! { ! // This is @Object, which is always true, nothing to test. ! } ! else if (sym instanceof TypeConstructor) tc = (TypeConstructor) sym; else |