Explorar o código

add test (really closes #9446)

Dan Korostelev %!s(int64=5) %!d(string=hai) anos
pai
achega
9fa77cba29
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  1. 16 0
      tests/server/src/cases/display/issues/Issue9446.hx

+ 16 - 0
tests/server/src/cases/display/issues/Issue9446.hx

@@ -0,0 +1,16 @@
+package cases.display.issues;
+
+class Issue9446 extends DisplayTestCase {
+	/**
+		function fu{-1-}nc() {}
+
+		function main() {
+			{-2-}func{-3-}();
+		}
+	**/
+	function test(_) {
+		runHaxeJson([], DisplayMethods.FindReferences, {file: file, offset: offset(1)});
+		var result = parseGotoDefinitionLocations();
+		Assert.same([range(2, 3)], result.map(l -> l.range));
+	}
+}