Browse Source

[display] added a test for `catch` without type hint (closes #9319)

Aleksandr Kuzmenko 5 years ago
parent
commit
41a99a1cee
1 changed files with 14 additions and 0 deletions
  1. 14 0
      tests/display/src/cases/Issue9319.hx

+ 14 - 0
tests/display/src/cases/Issue9319.hx

@@ -0,0 +1,14 @@
+package cases;
+
+class Issue9319 extends DisplayTestCase {
+	/**
+		class Main {
+			static function main() {
+				try {} catch(e{-1-}) {}
+			}
+		}
+	**/
+	function testCatch_noTypeHint() {
+		eq("haxe.Exception", type(pos(1)));
+	}
+}