{"action":"closed","issue":{"url":"https://api.github.com/repos/juanpale/ObligatorioWhile/issues/30","repository_url":"https://api.github.com/repos/juanpale/ObligatorioWhile","labels_url":"https://api.github.com/repos/juanpale/ObligatorioWhile/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/juanpale/ObligatorioWhile/issues/30/comments","events_url":"https://api.github.com/repos/juanpale/ObligatorioWhile/issues/30/events","html_url":"https://github.com/juanpale/ObligatorioWhile/issues/30","id":189699450,"number":30,"title":"Offense detected - 10B: Parametro de funcion de tipo incorrecto. Esperado: Double, actual: Integer.","user":{"login":"nandotorterolo","id":8540107,"avatar_url":"https://avatars.githubusercontent.com/u/8540107?v=3","gravatar_id":"","url":"https://api.github.com/users/nandotorterolo","html_url":"https://github.com/nandotorterolo","followers_url":"https://api.github.com/users/nandotorterolo/followers","following_url":"https://api.github.com/users/nandotorterolo/following{/other_user}","gists_url":"https://api.github.com/users/nandotorterolo/gists{/gist_id}","starred_url":"https://api.github.com/users/nandotorterolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandotorterolo/subscriptions","organizations_url":"https://api.github.com/users/nandotorterolo/orgs","repos_url":"https://api.github.com/users/nandotorterolo/repos","events_url":"https://api.github.com/users/nandotorterolo/events{/privacy}","received_events_url":"https://api.github.com/users/nandotorterolo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T13:11:15Z","updated_at":"2016-11-16T17:37:43Z","closed_at":"2016-11-16T17:37:43Z","body":"Dado este caso probando la regla 20.\r\n```\r\n[info] {\r\n[info]   function num suma(num a, num b) {\r\n[info]     num i = (a + b *( a + b * ( a + b *( a + b *( a + b )))));\r\n[info]     return i;\r\n[info]   }\r\n[info] \r\n[info]   num i = suma(1, 1);\r\n[info]   print(i);\r\n[info] } should\r\n[info] + contain message:Offense detected - 20: Existe una expresion con 9 operadores\r\n```\r\n\r\nEl comportamiento es el correcto, me tira estos 3 warnings:\r\n```\r\n\r\nOffense detected - 20: Existe una expresion con 9 operadores. Line: 2, Column: 4\r\nOffense detected - 10B: Parametro de funcion de tipo incorrecto. Esperado: Double, actual: Integer. Line: 6, Column: 10\r\nOffense detected - 10B: Parametro de funcion de tipo incorrecto. Esperado: Double, actual: Integer. Line: 6, Column: 10[info] rule20\r\n```\r\n\r\nLo que no entiendo es: el lenguaje while acepta tipos de vaiable, `num`, `int`, `bool`, `str`,  \r\nPorque el mensaje de advertencia 10B, devuelve tipos de datos java, `Integer`, `Double`. ?\r\n\r\nSe puede mejorar? y poner los tipos datos esperados del lenguaje while.   \r\n\r\n\r\n\r\n."}}
{"actor":{"display_login":"juanpale"}}