{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/98","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/98/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/98/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/98","id":55391851,"number":98,"title":"Using a single, optional, static parameter to a type provider causes failure","user":{"login":"KevinRansom","id":5175830,"avatar_url":"https://avatars.githubusercontent.com/u/5175830?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinRansom","html_url":"https://github.com/KevinRansom","followers_url":"https://api.github.com/users/KevinRansom/followers","following_url":"https://api.github.com/users/KevinRansom/following{/other_user}","gists_url":"https://api.github.com/users/KevinRansom/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinRansom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinRansom/subscriptions","organizations_url":"https://api.github.com/users/KevinRansom/orgs","repos_url":"https://api.github.com/users/KevinRansom/repos","events_url":"https://api.github.com/users/KevinRansom/events{/privacy}","received_events_url":"https://api.github.com/users/KevinRansom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T01:39:06Z","updated_at":"2015-01-25T01:39:06Z","closed_at":null,"body":"Originally opened on [CodePlex](https://visualfsharp.codeplex.com/workitem/71) by [latkin](Using a single, optional, static parameter to a type provider causes failure)\r\n[originally reported to fsbugs] \r\n\r\nRepro solution attached \r\n\r\n![2nhackv](https://cloud.githubusercontent.com/assets/5175830/5889835/8f651608-a3ef-11e4-9af0-4ffddb2da945.png)\r\nIf one creates a type provider with a single, optional, static parameter (i.e. single parameter with a default value specified), two scenarios are broken:\r\n* Omitting the optional parameter \r\n* Including the optional parameter, when the value matches the specified default\r\n\r\nE.g. TP \"Test\" has single string optional arg, with default value \"Foo\": \r\nImage \r\n\r\nFix strategy, per Vlad: \r\n\"Fix seems to be trivial - one line addition in name demangling routine (demangleProvidedTypeName in PrettyNaming.fs)\"\r\n\r\n[Repro](https://www.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=visualfsharp&WorkItemId=71&FileAttachmentId=854201):\r\n"}}