{"action":"created","issue":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3198","repository_url":"https://api.github.com/repos/ballerinalang/ballerina","labels_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3198/labels{/name}","comments_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3198/comments","events_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3198/events","html_url":"https://github.com/ballerinalang/ballerina/issues/3198","id":250321235,"number":3198,"title":"Error message -- Ballerina : 0 ","user":{"login":"irsd62","id":24229626,"avatar_url":"https://avatars0.githubusercontent.com/u/24229626?v=4","gravatar_id":"","url":"https://api.github.com/users/irsd62","html_url":"https://github.com/irsd62","followers_url":"https://api.github.com/users/irsd62/followers","following_url":"https://api.github.com/users/irsd62/following{/other_user}","gists_url":"https://api.github.com/users/irsd62/gists{/gist_id}","starred_url":"https://api.github.com/users/irsd62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irsd62/subscriptions","organizations_url":"https://api.github.com/users/irsd62/orgs","repos_url":"https://api.github.com/users/irsd62/repos","events_url":"https://api.github.com/users/irsd62/events{/privacy}","received_events_url":"https://api.github.com/users/irsd62/received_events","type":"User","site_admin":false},"labels":[{"id":482852536,"url":"https://api.github.com/repos/ballerinalang/ballerina/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T13:54:46Z","updated_at":"2017-10-17T13:15:50Z","closed_at":"2017-10-17T13:15:50Z","author_association":"NONE","body":"If a user mistakenly tries to get more than returned number of values from a function. \r\n\r\nThe error message is not clear.  \r\n\r\n```\r\nfunction main (string[] args) {\r\n\r\n    var a,b,c = getVal();\r\n}\r\n\r\nfunction getVal()(string val ){\r\n    val = \"a\";\r\n    return;\r\n}\r\n```\r\nError : ballerina: 1 \r\n\r\nThat's the only error message. "},"comment":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/comments/337227593","html_url":"https://github.com/ballerinalang/ballerina/issues/3198#issuecomment-337227593","issue_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3198","id":337227593,"user":{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T13:15:50Z","updated_at":"2017-10-17T13:15:50Z","author_association":"CONTRIBUTOR","body":"Fixed in v0.93.1\r\nNoe folowing error is thrown:\r\n```\r\nerror: mainFunction.bal:3:17: assignment count mismatch: 3 != 1\r\n```"}}
{"actor":{"display_login":"SupunS"}}