From a4d63ca8ba012d4a65a66b655e98d7ea79c313db Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 15 Aug 2022 18:50:12 +0800 Subject: [PATCH] closes #12955; add testcase (#20223) --- tests/stylecheck/fileinfo.nim | 2 ++ tests/stylecheck/taccept.nim | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 tests/stylecheck/fileinfo.nim diff --git a/tests/stylecheck/fileinfo.nim b/tests/stylecheck/fileinfo.nim new file mode 100644 index 0000000000..d6faf0c735 --- /dev/null +++ b/tests/stylecheck/fileinfo.nim @@ -0,0 +1,2 @@ +# fileinfo.nim +type FileInfo* = object \ No newline at end of file diff --git a/tests/stylecheck/taccept.nim b/tests/stylecheck/taccept.nim index afe02a65c8..43a9ab71f3 100644 --- a/tests/stylecheck/taccept.nim +++ b/tests/stylecheck/taccept.nim @@ -15,3 +15,8 @@ template hello = doAssert iD == "string" hello() + +# bug #12955 +import os +import fileinfo +var xs: seq[fileinfo.FileInfo]