[Nice-commit] Nice/src/bossa/syntax typecheck.nice,1.75,1.76
Brought to you by:
bonniot
From: <bo...@us...> - 2003-08-30 10:31:42
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv18359/src/bossa/syntax Modified Files: typecheck.nice Log Message: Make 'var i = <byte expression>' assign i the type int. Index: typecheck.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/typecheck.nice,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** typecheck.nice 28 Aug 2003 08:46:32 -0000 1.75 --- typecheck.nice 30 Aug 2003 10:31:36 -0000 1.76 *************** *** 586,589 **** --- 586,591 ---- decl.value = value = value.noOverloading(); target.type = checkMonomorphic(value.getType(), decl); + if (target.type == PrimitiveType.byteType) + target.type = notNull(PrimitiveType.intType); } else |