{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/1","repository_url":"https://api.github.com/repos/fable-compiler/fable-graphics","labels_url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/1/comments","events_url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/1/events","html_url":"https://github.com/fable-compiler/fable-graphics/issues/1","id":172800395,"number":1,"title":"Pixi: fail to use renderer","user":{"login":"whitetigle","id":883207,"avatar_url":"https://avatars.githubusercontent.com/u/883207?v=3","gravatar_id":"","url":"https://api.github.com/users/whitetigle","html_url":"https://github.com/whitetigle","followers_url":"https://api.github.com/users/whitetigle/followers","following_url":"https://api.github.com/users/whitetigle/following{/other_user}","gists_url":"https://api.github.com/users/whitetigle/gists{/gist_id}","starred_url":"https://api.github.com/users/whitetigle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitetigle/subscriptions","organizations_url":"https://api.github.com/users/whitetigle/orgs","repos_url":"https://api.github.com/users/whitetigle/repos","events_url":"https://api.github.com/users/whitetigle/events{/privacy}","received_events_url":"https://api.github.com/users/whitetigle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":64,"created_at":"2016-08-23T20:36:49Z","updated_at":"2016-08-30T09:23:17Z","closed_at":"2016-08-24T05:55:52Z","body":"Hi!\r\nI am trying to setup a very simple Pixi project. However I fail right at the start with a compilation error.\r\nSince I am new to both Fable & F# there may be things I do wrong.  Or maybe I did not understand the **Erase attribute** sample in the doc since **Globals.autodetectRenderer** returns a **U2\\<WebGLRenderer, CanvasRenderer\\>**\r\n\r\nAnyway here is my code : \r\n\r\n```\r\nopen System\r\nopen Fable.Core\r\nopen Fable.Core.JsInterop\r\nopen Fable.Import.PIXI\r\nopen Fable.Import.Browser\r\n\r\nlet currentRenderer =\r\n  let renderer = Globals.autoDetectRenderer( 800., 600.  )\r\n  match renderer with\r\n    | U2.Case1 webgl -> webgl :> SystemRenderer\r\n    | U2.Case2 canvas -> canvas :> SystemRenderer\r\n\r\ndocument.body.appendChild( currentRenderer.view )\r\n```\r\n\r\nWhen I compile it says : \r\n\r\n> fable-compiler 0.5.8: Start compilation...\r\nERROR: Unsupported type test: GenericParam \"b\" (L27,8-L27,16) \r\n\r\nwhich corresponds to my renderer value\r\n\r\n> match **renderer** with\r\n\r\nI use fable-core 0.5.5. \r\nI have tried other ways but I can't get past this error. \r\nThanks for your kind help!"},"comment":{"url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/comments/243382817","html_url":"https://github.com/fable-compiler/fable-graphics/issues/1#issuecomment-243382817","issue_url":"https://api.github.com/repos/fable-compiler/fable-graphics/issues/1","id":243382817,"user":{"login":"whitetigle","id":883207,"avatar_url":"https://avatars.githubusercontent.com/u/883207?v=3","gravatar_id":"","url":"https://api.github.com/users/whitetigle","html_url":"https://github.com/whitetigle","followers_url":"https://api.github.com/users/whitetigle/followers","following_url":"https://api.github.com/users/whitetigle/following{/other_user}","gists_url":"https://api.github.com/users/whitetigle/gists{/gist_id}","starred_url":"https://api.github.com/users/whitetigle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitetigle/subscriptions","organizations_url":"https://api.github.com/users/whitetigle/orgs","repos_url":"https://api.github.com/users/whitetigle/repos","events_url":"https://api.github.com/users/whitetigle/events{/privacy}","received_events_url":"https://api.github.com/users/whitetigle/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T09:23:17Z","updated_at":"2016-08-30T09:23:17Z","body":"@alfonsogarciacaro thanks! "}}
{"actor":{"display_login":"whitetigle"}}