{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/304","labels_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/304/comments","events_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/304/events","html_url":"https://github.com/fsharp/FSharp.Compiler.Service/issues/304","id":58566324,"number":304,"title":"Internal modules shown as 'not accessible' to external ones in the interactive checker","user":{"login":"7sharp9","id":588746,"avatar_url":"https://avatars.githubusercontent.com/u/588746?v=3","gravatar_id":"","url":"https://api.github.com/users/7sharp9","html_url":"https://github.com/7sharp9","followers_url":"https://api.github.com/users/7sharp9/followers","following_url":"https://api.github.com/users/7sharp9/following{/other_user}","gists_url":"https://api.github.com/users/7sharp9/gists{/gist_id}","starred_url":"https://api.github.com/users/7sharp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7sharp9/subscriptions","organizations_url":"https://api.github.com/users/7sharp9/orgs","repos_url":"https://api.github.com/users/7sharp9/repos","events_url":"https://api.github.com/users/7sharp9/events{/privacy}","received_events_url":"https://api.github.com/users/7sharp9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-23T10:13:16Z","updated_at":"2015-03-19T10:49:22Z","closed_at":null,"body":"This is referencing bugzilla issue: https://bugzilla.xamarin.com/show_bug.cgi?id=27284\r\n\r\nreference code.\r\n\r\nFor the following library:\r\n```fsharp\r\nnamespace SharedModule\r\n\r\nmodule internal Shared =\r\n    type Class1() = \r\n        member this.X = \"F#\"\r\n\r\n[<assembly:System.Runtime.CompilerServices.InternalsVisibleTo(\"TheConsole\")>]\r\n()\r\n```\r\n\r\nAnd the following Console App named \"TheConsole\":\r\n```fsharp\r\n[<EntryPoint>]\r\nlet main argv = \r\n    let x = SharedModule.Shared.Class1()\r\n    printfn \"%A\" x.X\r\n    0 // return an integer exit code\r\n```\r\n- - - \r\nThere are errors are coming from the\r\nInteractiveChecker, its somehow not aware of the InternalsVisible to attribute in the referenced dll.\r\n\r\nThe attributes passed to FCS seem to be correct but the following errors are\r\nreturned from the InteractiveChecker\r\n\r\n[0]    {/Users/dave/Projects/SharedModule/TheConsole/Program.fs (6,26)-(6,32)\r\ntypecheck error The type 'Shared' is not accessible from this code location}    \r\n\r\n[1]    {/Users/dave/Projects/SharedModule/TheConsole/Program.fs (6,13)-(6,41)\r\ntypecheck error The member or object constructor 'Class1' is not accessible.\r\nPrivate members may only be accessed from within the declaring type. Protected\r\nmembers may only be accessed from an extending type and cannot be accessed from\r\ninner lambda expressions.}    \r\n\r\n[2]    {/Users/dave/Projects/SharedModule/TheConsole/Program.fs (7,18)-(7,21)\r\ntypecheck error Lookup on object of indeterminate type based on information\r\nprior to this program point. A type annotation may be needed prior to this\r\nprogram point to constrain the type of the object. This may allow the lookup to\r\nbe resolved.} "},"comment":{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/comments/83502201","html_url":"https://github.com/fsharp/FSharp.Compiler.Service/issues/304#issuecomment-83502201","issue_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/304","id":83502201,"user":{"login":"7sharp9","id":588746,"avatar_url":"https://avatars.githubusercontent.com/u/588746?v=3","gravatar_id":"","url":"https://api.github.com/users/7sharp9","html_url":"https://github.com/7sharp9","followers_url":"https://api.github.com/users/7sharp9/followers","following_url":"https://api.github.com/users/7sharp9/following{/other_user}","gists_url":"https://api.github.com/users/7sharp9/gists{/gist_id}","starred_url":"https://api.github.com/users/7sharp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7sharp9/subscriptions","organizations_url":"https://api.github.com/users/7sharp9/orgs","repos_url":"https://api.github.com/users/7sharp9/repos","events_url":"https://api.github.com/users/7sharp9/events{/privacy}","received_events_url":"https://api.github.com/users/7sharp9/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T10:49:22Z","updated_at":"2015-03-19T10:49:22Z","body":"Hmm, I dont think it is or ever was, Ill update `generateCompilerOptions` and see what happens ..."}}