X Tutup
Skip to content

No hover/definition for overload call #11285

@RblSb

Description

@RblSb
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup