New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@inlined doesn't seem to work with module aliases #7538
Comments
Comment author: @mshinwell Before anyone else spends time on this: Leo and I are aware of various other problems relating to inlining annotations on functors (including their failure to work when functors have multiple arguments and/or coercions). We will produce fixes as soon as we can. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
The weird difference in behaviour with aliases for the warning has been fixed. Although I should point out that placing the annotation there in both cases will do nothing useful. Probably we should be warning in both cases. |
Fix for this in #9669. It will now give the warning on all the cases. |
Original bug ID: 7538
Reporter: talex
Assigned to: @mshinwell
Status: assigned (set by @mshinwell on 2017-05-23T13:46:02Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.04.1
Category: middle end (typedtree to clambda)
Bug description
When building a project with @inlined annotations using jbuilder, OCaml complains that 'the "inlined" attribute cannot appear in this context'. Turning off "wrapped" mode made the warning go away. It looks like @inlined doesn't work with module aliases.
Steps to reproduce
(simplified by lpw25)
module M = Map.Make@inlined;;
works, but:
module N = Map
module M = N.Make@inlined;;
gives:
Warning 53: the "inlined" attribute cannot appear in this context
The text was updated successfully, but these errors were encountered: