pufuwozu/roy — Issue #46: Option monad and deep matching tests are broken
Author: paulmillr
Created: 2011-12-04 05:26:48+00:00
State: open

Commit 8f31ad8d450ca348958c386a5903d8ddac6a1a51 brokes tests `option_monad` and `deep_matching`:

```

Error: test/option_monad.roy Command failed:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property '0' of undefined
at roy/src/typeinference.js:425:76
at Array.forEach (native)
at Function. (roy/node_modules/underscore/underscore.js:81:11)
at roy/src/typeinference.js:424:23
at roy/src/typeinference.js:451:17
at Array.forEach (native)
at Function. (roy/node_modules/underscore/underscore.js:81:11)
at Object.visitMatch (roy/src/typeinference.js:417:15)
at [object Object].accept (roy/src/nodes.js:106:26)
at roy/src/typeinference.js:141:17

Error: test/deep_matching.roy Command failed:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property '0' of undefined
at roy/src/typeinference.js:425:76
at Array.forEach (native)
at Function. (roy/node_modules/underscore/underscore.js:81:11)
at roy/src/typeinference.js:424:23
at roy/src/typeinference.js:451:17
at Array.forEach (native)
at Function. (roy/node_modules/underscore/underscore.js:81:11)
at Object.visitMatch (roy/src/typeinference.js:417:15)
at [object Object].accept (roy/src/nodes.js:106:26)
at roy/src/typeinference.js:141:17
```