SCM Repository
[diderot] / branches / vis12 / bugs / bug005.diderot |
View of /branches/vis12/bugs/bug005.diderot
Parent Directory
|
Revision Log
Revision 2150 -
(download)
(annotate)
Sun Feb 17 18:25:53 2013 UTC (9 years, 4 months ago) by jhr
File size: 693 byte(s)
Sun Feb 17 18:25:53 2013 UTC (9 years, 4 months ago) by jhr
File size: 693 byte(s)
Update bug status by moving fixed bugs to bugs/resolved directory. Added bug005.diderot -- error in handling redefinition of variables bug006.diderot -- don't catch programs without outputs
/*! \file bug005.diderot * * \author John Reppy */ /* * COPYRIGHT (c) 2013 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ /* this fails to compile because the parameter name for id is the same as an already declared * global. * * % ../../bin/diderotc --exec bug005.diderot * [bug005.diderot:3.19-25] Error: redefinition of 'x', previous definition at [bug005.diderot:1.1-2.0] * * we should allow this redefinition, since the parameter list is a new scope (do we want a warning?) */ real x = 1.0; function real id (real x) = x; strand Dummy () { output int out = 1; update { stabilize; } } initially { Dummy() | i in 1..2 };
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |