-
-
Notifications
You must be signed in to change notification settings - Fork 694
Closed
Description
using Main.MathTools;
function main() {
var float = 0.0;
var int = 0;
float.wrapAround(0, 1);
int.wrapAround(0, 1); // no hover
}
class MathTools {
extern overload public static inline function wrapAround(v:Int, min:Int, max:Int):Int {
var range = max - min;
return min + (((v - min) % range) + range) % range;
}
extern overload public static inline function wrapAround(v:Float, min:Float, max:Float):Float {
var range = max - min;
return min + (((v - min) % range) + range) % range;
}
}Request textDocument/hover failed.
Message: Could not find a suitable overload, reasons follow
Also, if you swap functions in MathTools, then both calls will fail for hover.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels