{"action":"closed","issue":{"url":"https://api.github.com/repos/np/ling/issues/36","repository_url":"https://api.github.com/repos/np/ling","labels_url":"https://api.github.com/repos/np/ling/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/np/ling/issues/36/comments","events_url":"https://api.github.com/repos/np/ling/issues/36/events","html_url":"https://github.com/np/ling/issues/36","id":171361509,"number":36,"title":"First example in the tutorial doesn't compile","user":{"login":"canndrew","id":5555066,"avatar_url":"https://avatars.githubusercontent.com/u/5555066?v=3","gravatar_id":"","url":"https://api.github.com/users/canndrew","html_url":"https://github.com/canndrew","followers_url":"https://api.github.com/users/canndrew/followers","following_url":"https://api.github.com/users/canndrew/following{/other_user}","gists_url":"https://api.github.com/users/canndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/canndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canndrew/subscriptions","organizations_url":"https://api.github.com/users/canndrew/orgs","repos_url":"https://api.github.com/users/canndrew/repos","events_url":"https://api.github.com/users/canndrew/events{/privacy}","received_events_url":"https://api.github.com/users/canndrew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T09:14:36Z","updated_at":"2016-08-29T09:46:23Z","closed_at":"2016-08-29T09:46:23Z","body":"Dunno if this is the right place to file this issue, but anyway...\r\n\r\nThe tutorial opens with the following code example:\r\n\r\n```\r\nsum_int = proc(a : {?Int ^ 10}, r : !Int)\r\n  new/alloc [itmp : !Int.?Int, tmp]\r\n  ( send itmp 0.\r\n    fwd(?Int)(itmp, r)\r\n  | a{ai}\r\n    slice (ai) 10 as i\r\n      recv ai  (x : Int).\r\n      recv tmp (y : Int).\r\n      send tmp (x + y))\r\n```\r\n\r\nWhen I try to build this with a freshly cloned and built ling compiler it gives me an error:\r\n\r\n```\r\nWhile checking `sum_int`\r\n  While checking `ai`\r\n    Replication factors are not equivalent.\r\n    Annotation:\r\n      1\r\n    Inferred:\r\n      10\r\n```\r\n"}}
{"actor":{"display_login":"np"}}