You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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: