summary refs log tree commit diff stats
path: root/tests/openarray/topena1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openarray/topena1.nim')
-rw-r--r--tests/openarray/topena1.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/openarray/topena1.nim b/tests/openarray/topena1.nim
new file mode 100644
index 000000000..380c57f2a
--- /dev/null
+++ b/tests/openarray/topena1.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "invalid type"
+  file: "topena1.nim"
+  line: 9
+"""
+# Tests a special bug
+
+var
+  x: ref openArray[string] #ERROR_MSG invalid type