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
{{ message }}
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Anonymous interface implementation accessibility when tuple deconstruction is used. #802
Anonymous interface implementation accessibility when tuple deconstruction is used
Repro steps
moduleprivatePM =typePT=abstractA :intleta={new PT withmember__.A=1}// okletb,c =// PT is less accessible than PT * PT{new PT withmember__.A=1},{new PT withmember__.A=1}
/home/runner/main.fs(5,9): error FS0410: The type 'PT' is less accessible than the value, member or type 'val patternInput : PM.PT * PM.PT' it is used in
/home/runner/main.fs(5,9): error FS0410: The type 'PT' is less accessible than the value, member or type 'val patternInput : PM.PT * PM.PT' it is used in
Expected behavior
Should work just like a does.
Actual behavior
Compile error
Known workarounds
Construct the tuple after implementing the anonymous interfaces
changed the title [-]Anonymous interface implementation accessibility when tupled.[/-][+]Anonymous interface implementation accessibility when tuple deconstruction is used.[/+]on Dec 11, 2017
Activity
[-]Anonymous interface implementation accessibility when tupled.[/-][+]Anonymous interface implementation accessibility when tuple deconstruction is used.[/+]enricosada commentedon Dec 22, 2017
hi @FrankBro, this repo is for cross platform packaging of fsharp ( see http://fsharp.github.io/2014/06/18/fsharp-contributions.html for a guide).
i moved your issue to dotnet/fsharp#4161
more info in the README