Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/compiler/IL/check-il-fn.sml
ViewVC logotype

Diff of /trunk/src/compiler/IL/check-il-fn.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1232, Mon May 16 23:37:52 2011 UTC revision 1444, Mon Jul 11 12:11:53 2011 UTC
# Line 246  Line 246 
246                  fun checkMethod (IL.Method{name, stateIn, body, ...}) = (                  fun checkMethod (IL.Method{name, stateIn, body, ...}) = (
247                        if (nStateVars <> List.length stateIn)                        if (nStateVars <> List.length stateIn)
248                          then errFn [                          then errFn [
249                              S "method ", A name, S " has incorrect number of state variables", NL,                              S "method ", S(MethodName.toString name),
250                                S " has incorrect number of state variables", NL,
251                              S "expected ", S(Int.toString nStateVars), S ", but found ",                              S "expected ", S(Int.toString nStateVars), S ", but found ",
252                              S(Int.toString(List.length stateIn))                              S(Int.toString(List.length stateIn))
253                            ]                            ]

Legend:
Removed from v.1232  
changed lines
  Added in v.1444

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0