On 9/3/10 2:27 PM, Peter Hull wrote:
I don't know if this is a bug or it's by design but I was confused by
rustboot. I had a function taking an int argument and called it with a
uint. The error message said "expected uint but found int" at the
calling line but I would have expected "expected int but found uint"

See http://gist.github.com/564513#file_me.rs for a minimal example.

Yes, I'm not at all surprised that the "expected" and "actual" types turn out backwards in some cases. Sorry about that. Feel free to file a bug.

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to