Browse Source

[hl] add a test for #8299

Jens Fischer 6 years ago
parent
commit
bdfefb763e
1 changed files with 11 additions and 0 deletions
  1. 11 0
      tests/unit/src/unit/issues/Issue8299.hx

+ 11 - 0
tests/unit/src/unit/issues/Issue8299.hx

@@ -0,0 +1,11 @@
+package unit.issues;
+
+class Issue8299 extends unit.Test {
+	function test() {
+		eq(-1, foo(1, 2));
+	}
+
+	static function foo<T:Int>(a:T, b:T):Int {
+		return a - b;
+	}
+}