{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1263","repository_url":"https://api.github.com/repos/D-Programming-Language/dlang.org","labels_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1263/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1263/comments","events_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1263/events","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/1263","id":147170186,"number":1263,"title":"fix compile error","user":{"login":"Passw","id":5151456,"avatar_url":"https://avatars.githubusercontent.com/u/5151456?v=3","gravatar_id":"","url":"https://api.github.com/users/Passw","html_url":"https://github.com/Passw","followers_url":"https://api.github.com/users/Passw/followers","following_url":"https://api.github.com/users/Passw/following{/other_user}","gists_url":"https://api.github.com/users/Passw/gists{/gist_id}","starred_url":"https://api.github.com/users/Passw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Passw/subscriptions","organizations_url":"https://api.github.com/users/Passw/orgs","repos_url":"https://api.github.com/users/Passw/repos","events_url":"https://api.github.com/users/Passw/events{/privacy}","received_events_url":"https://api.github.com/users/Passw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-09T22:41:30Z","updated_at":"2016-04-09T23:20:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1263","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/1263","diff_url":"https://github.com/D-Programming-Language/dlang.org/pull/1263.diff","patch_url":"https://github.com/D-Programming-Language/dlang.org/pull/1263.patch"},"body":"ref2.d\r\n```d\r\nimport std.stdio;\r\n\r\nref int func2()\r\n{\r\n    static int y = 0;\r\n    writeln(\"y \\t\" , y);\r\n\r\n    return y;\r\n}\r\n\r\nvoid main()\r\n{\r\n    func2() = 2; // The return value of func2() can be modified.\r\n    assert(func2() == 2);\r\n\r\n    auto x = func2();\r\n    pragma(msg, typeof(x));\r\n    static assert(is(typeof(x) == int));\r\n    static assert(typeof(x) == int); // why not work ???\r\n\r\n    x++;\r\n    writeln(\"x \\t\", x);\r\n    assert(x == 3);\r\n    assert(func2() == 2);\r\n}\r\n```\r\n\r\n```\r\ndmd ref2.d\r\nref2.d(19): Error: found ')' when expecting '.' following int\r\nref2.d(19): Error: found ';' when expecting identifier following 'int.'\r\nref2.d(21): Error: found 'x' when expecting ')'\r\nref2.d(21): Error: found '++' when expecting ';'\r\n```"},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/comments/207874279","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/1263#issuecomment-207874279","issue_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1263","id":207874279,"user":{"login":"Hackerpilot","id":1657783,"avatar_url":"https://avatars.githubusercontent.com/u/1657783?v=3","gravatar_id":"","url":"https://api.github.com/users/Hackerpilot","html_url":"https://github.com/Hackerpilot","followers_url":"https://api.github.com/users/Hackerpilot/followers","following_url":"https://api.github.com/users/Hackerpilot/following{/other_user}","gists_url":"https://api.github.com/users/Hackerpilot/gists{/gist_id}","starred_url":"https://api.github.com/users/Hackerpilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hackerpilot/subscriptions","organizations_url":"https://api.github.com/users/Hackerpilot/orgs","repos_url":"https://api.github.com/users/Hackerpilot/repos","events_url":"https://api.github.com/users/Hackerpilot/events{/privacy}","received_events_url":"https://api.github.com/users/Hackerpilot/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T23:20:53Z","updated_at":"2016-04-09T23:20:53Z","body":":white_check_mark: This example in the specification is wrong."}}