bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Error message for function call with missing parameter

Open HurryStarfish opened this issue 6 years ago • 2 comments

SuperStrict
Framework BRL.Blitz

F
Function F(a:Int) End Function
Function F(b:Float) End Function
Function F(c:Object) End Function

Compile Error: Unable to find overload for f(). Missing function parameter 'a'Missing function parameter 'b'Missing function parameter 'c'

Not a big deal, but a better error message for this would be nice :) Apart from the lack of line breaks, the "Missing function parameter" hint isn't very useful when a function is overloaded. Maybe "Unable to find overload" errors could include a list of available signatures, for example like this?

Compile Error: Unable to find overload for F(). The following overloads were found: F(a:Int) F(b:Float) F(c:Object)

HurryStarfish avatar Jan 15 '19 17:01 HurryStarfish