move-language / move

Apache License 2.0
2.25k stars 684 forks source link

[Bug] public Inline functions accessing local struct is not usable by other modules #959

Closed lightmark closed 1 year ago

lightmark commented 1 year ago

🐛 Bug

if module x defined a struct A and public inline func b() and b access A's internal field. Then any callsite outside x cannot use b since when b is expanded at the callsite, accessing A's fields becomes a violation.

Expected Behavior

any callside other than x and call b w/o any issue.

wrwg commented 1 year ago

Please open all bugs on inline functions in the aptos repo and attach the 'Move' project to them.