Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000521 | mercury | Bug | public | 2020-09-29 17:23 | 2022-01-25 01:24 |
Reporter | dirkz | ||||
---|---|---|---|---|---|
Assigned To | zs | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Mercury 20.06 | OS | macOS Catalina | OS Version | 10.15.7 |
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000521: Missing error message about an 'undefined type'; misleading error message instead | ||||
Description | The compiler should clearly complain about an 'undefined type'. Expected error message: thing_def.m:17 error: undefined type `list'/1. Actual error message: main.m:033: In clause for predicate `get_wrapped_things'/1: main.m:033: in argument 1 of functor `list_wrapper/1': main.m:033: type error in unification of argument main.m:033: and constant `get_things'. main.m:033: argument has type `list.list(thing_def.thing)', main.m:033: constant `get_things' has type `list(thing_def.thing)'. For more information, recompile with `-E'. | ||||
Steps To Reproduce | mmc --make main | ||||
Additional Information | Attached example: Module thing_def.m declares this function without importing the list module: :- func get_things = list(thing). Not importing the list module is the actual problem. But the compiler does not complain about the missing import. Instead it issues a misleading error message. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | example.tgz (434) 2020-09-29 17:23 https://bugs.mercurylang.org/file_download.php?file_id=307&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2020-09-29 17:23 | dirkz | New Issue | |||
2020-09-29 17:23 | dirkz | File Added: example.tgz | |||
2020-10-08 16:04 | zs | Assigned To | => zs | ||
2020-10-08 16:04 | zs | Status | new => assigned | ||
2020-10-08 16:10 | zs | Note Added: 0001108 | |||
2020-10-12 05:15 | dirkz | Note Added: 0001111 | |||
2022-01-25 01:24 | zs | Status | assigned => resolved | ||
2022-01-25 01:24 | zs | Resolution | open => fixed | ||
2022-01-25 01:24 | zs | Note Added: 0001159 |