{"action":"closed","issue":{"url":"https://api.github.com/repos/kevin-montrose/Jil/issues/127","labels_url":"https://api.github.com/repos/kevin-montrose/Jil/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/kevin-montrose/Jil/issues/127/comments","events_url":"https://api.github.com/repos/kevin-montrose/Jil/issues/127/events","html_url":"https://github.com/kevin-montrose/Jil/issues/127","id":70576323,"number":127,"title":"Fail to serialize in some classes with (multiple?) nullable types","user":{"login":"takeshik","id":163380,"avatar_url":"https://avatars.githubusercontent.com/u/163380?v=3","gravatar_id":"","url":"https://api.github.com/users/takeshik","html_url":"https://github.com/takeshik","followers_url":"https://api.github.com/users/takeshik/followers","following_url":"https://api.github.com/users/takeshik/following{/other_user}","gists_url":"https://api.github.com/users/takeshik/gists{/gist_id}","starred_url":"https://api.github.com/users/takeshik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeshik/subscriptions","organizations_url":"https://api.github.com/users/takeshik/orgs","repos_url":"https://api.github.com/users/takeshik/repos","events_url":"https://api.github.com/users/takeshik/events{/privacy}","received_events_url":"https://api.github.com/users/takeshik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kevin-montrose","id":1219467,"avatar_url":"https://avatars.githubusercontent.com/u/1219467?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-montrose","html_url":"https://github.com/kevin-montrose","followers_url":"https://api.github.com/users/kevin-montrose/followers","following_url":"https://api.github.com/users/kevin-montrose/following{/other_user}","gists_url":"https://api.github.com/users/kevin-montrose/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-montrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-montrose/subscriptions","organizations_url":"https://api.github.com/users/kevin-montrose/orgs","repos_url":"https://api.github.com/users/kevin-montrose/repos","events_url":"https://api.github.com/users/kevin-montrose/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-montrose/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-04-24T03:38:04Z","updated_at":"2015-04-25T23:51:05Z","closed_at":"2015-04-25T23:51:05Z","body":"Following code throws `InvalidProgramException` at `JSON.Serialize<FailedTestCase>` method.\r\nThis seems to be a bug in IL-emitting system in Jil.\r\n\r\n```csharp\r\nclass Program {\r\n    static void Main() {\r\n        var d = new FailedTestCase();\r\n        Jil.JSON.Serialize(d); // fail\r\n        Jil.JSON.SerializeDynamic(d); // ok in SerializeDynamic\r\n    }\r\n}\r\n\r\npublic class FailedTestCase {\r\n    public int? A { get; set; }\r\n    public Dictionary<int, int?> B { get; set; }\r\n}\r\n\r\n// following cases are passed successfully:\r\n\r\npublic class PassedTestCase1 {\r\n    public int A { get; set; }\r\n    public Dictionary<int, int?> B { get; set; }\r\n}\r\n\r\npublic class PassedTestCase2 {\r\n    public int? A { get; set; }\r\n    public Dictionary<int, int> B { get; set; }\r\n}\r\n```\r\n\r\n* .NET Framework: 4.0.30319.0\r\n* Operating System: Windows 8.1, x64"}}