Unexpected Type Error with format()

Former Member
Former Member
If you try:

1. function b() {
2. var num = 3.14;
3. System.println(num.format("%d"));
4. }
5. function a() {
6. b();
7.}


you get the runtime errors:

Failed invoking <symbol>
Unexpected Type Error
a() line 6


perhaps fair enough, although I expected .format() to silently convert the type to an integer.

What is definitely wrong is it doesn't report the correct function or line number. And it would be helpful if the error named the types. e.g., "Unexpected Type Error, Float instead of Number"