{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/831","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/831/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/831/events","html_url":"https://github.com/ldc-developers/ldc/issues/831","id":55619338,"number":831,"title":"Zero-length array is null, unlike in dmd","user":{"login":"SFrijters","id":918365,"avatar_url":"https://avatars.githubusercontent.com/u/918365?v=3","gravatar_id":"","url":"https://api.github.com/users/SFrijters","html_url":"https://github.com/SFrijters","followers_url":"https://api.github.com/users/SFrijters/followers","following_url":"https://api.github.com/users/SFrijters/following{/other_user}","gists_url":"https://api.github.com/users/SFrijters/gists{/gist_id}","starred_url":"https://api.github.com/users/SFrijters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFrijters/subscriptions","organizations_url":"https://api.github.com/users/SFrijters/orgs","repos_url":"https://api.github.com/users/SFrijters/repos","events_url":"https://api.github.com/users/SFrijters/events{/privacy}","received_events_url":"https://api.github.com/users/SFrijters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-27T13:47:02Z","updated_at":"2015-02-01T14:44:49Z","closed_at":null,"body":"LDC treats zero-length arrays differently from dmd:\r\n\r\nvoid test(int[] data)\r\n  in { assert(data, \"data must be non-null.\"); }\r\n  body { }\r\n\r\nvoid main() {\r\n  import std.stdio;\r\n  int[1] data1;\r\n  writeln(data1); // [0]\r\n  test(data1); // Passes\r\n  int[0] data0;\r\n  writeln(data0); // []\r\n  test(data0); // Passes with dmd 2.066.1, asserts with ldc2 0.15.1\r\n}"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/72367368","html_url":"https://github.com/ldc-developers/ldc/issues/831#issuecomment-72367368","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/831","id":72367368,"user":{"login":"SFrijters","id":918365,"avatar_url":"https://avatars.githubusercontent.com/u/918365?v=3","gravatar_id":"","url":"https://api.github.com/users/SFrijters","html_url":"https://github.com/SFrijters","followers_url":"https://api.github.com/users/SFrijters/followers","following_url":"https://api.github.com/users/SFrijters/following{/other_user}","gists_url":"https://api.github.com/users/SFrijters/gists{/gist_id}","starred_url":"https://api.github.com/users/SFrijters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFrijters/subscriptions","organizations_url":"https://api.github.com/users/SFrijters/orgs","repos_url":"https://api.github.com/users/SFrijters/repos","events_url":"https://api.github.com/users/SFrijters/events{/privacy}","received_events_url":"https://api.github.com/users/SFrijters/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T14:44:49Z","updated_at":"2015-02-01T14:44:49Z","body":"Requested comments http://forum.dlang.org/thread/zfwykmybraqxcciwsrgu@forum.dlang.org ."}}