| Mercury Bugs - mercury | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0000001 | mercury | Bug | public | 2007-09-17 11:18 | 2007-09-25 11:54 | 
| Reporter | obo | ||||
|---|---|---|---|---|---|
| Assigned To | |||||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | acknowledged | Resolution | open | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0000001: non-instructive error message: 'unused' mode requires explicit lambda expression | ||||
| Description | Hi. the attached code demonstrates a not quite instructive error message. While the predicate main2/2 compiles fine, main/2 does not, because I try to directly pass/curry an argument in 'unused' mode. One solution is to automatically infer the correct mode when currying, another is to make the error message more specific. Thanks, O. | ||||
| Additional Information | bug.m:019: In clause for `main(in, out)': bug.m:019: in argument 1 of call to predicate `call_int_modifier'/3: bug.m:019: mode error: variable `V_7' has instantiatedness `free', bug.m:019: expected instantiatedness for non-local variables of lambda goals bug.m:019: is `ground'. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files |  bug.m (615) 2007-09-17 11:18 https://bugs.mercurylang.org/file_download.php?file_id=1&type=bug | ||||
| Notes | |||||
|  | |||||
| 
 | 
 | ||||
|  | |||||
| 
 | 
 | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
|---|---|---|---|---|---|
| 2007-09-17 11:18 | obo | New Issue | |||
| 2007-09-17 11:18 | obo | File Added: bug.m | |||
| 2007-09-17 11:56 | obo | Note Added: 0000001 | |||
| 2007-09-25 11:54 | juliensf | Note Added: 0000005 | |||
| 2007-09-25 11:54 | juliensf | Status | new => acknowledged | ||