浏览代码

test for `expr is Module.SubType` (closes #10174)

Aleksandr Kuzmenko 4 年之前
父节点
当前提交
9e7b13d011
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 9 0
      tests/unit/src/unit/issues/Issue10174.hx
  2. 3 0
      tests/unit/src/unit/issues/misc/Issue10174Foo.hx

+ 9 - 0
tests/unit/src/unit/issues/Issue10174.hx

@@ -0,0 +1,9 @@
+package unit.issues;
+
+class Issue10174 extends Test {
+	function test() {
+		//should be parsed and typed without errors
+		"" is unit.issues.misc.Issue10174Foo.Bar;
+		noAssert();
+	}
+}

+ 3 - 0
tests/unit/src/unit/issues/misc/Issue10174Foo.hx

@@ -0,0 +1,3 @@
+package unit.issues.misc;
+
+class Bar {}