Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

El error primitive-argument-type-mismatch no reporta en el campo 'detail' el valor recibido #33

Open
afska opened this issue Aug 13, 2018 · 0 comments

Comments

@afska
Copy link
Member

afska commented Aug 13, 2018

"/*@BEGIN_REGION@a/9zvQACoruVnTLM1p~b@*/
function devolverAlgo() {
  return ()
}
/*@END_REGION@*/


/*@BEGIN_REGION@SIMpdTJJ(*#{({7teG#z@*/
program {
  /*@BEGIN_REGION@nM}+i6*2?UE4{Pk$),y/@*/
  Poner(/*@BEGIN_REGION@J^(EM64BpdJau)wv.Ty5@*/devolverAlgo()/*@END_REGION@*/)
  /*@END_REGION@*/
}
/*@END_REGION@*/

En este caso Poner recibe una tupla vacía, pero en el detail no aparece el valor recibido. Este lo necesitamos para poder adaptar mejor los mensajes de error para cuando se usan bloques.

También sería piola que los objetos TypeAlgo entiendan algún mensaje para que retornen el nombre humano del tipo. Por ej. si hago unTypeNumber.toString() me da "Number". Eso está bueno, pero también estaría genial que haya un .toLocalizedString() que devuelva 'un número'.

screenshot1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant