summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/T9225.hs
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-03-31 00:41:23 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-03-31 00:52:32 +0200
commit5971ad56afbdadc9af1cf9e8d708783d2fddbd95 (patch)
tree3075720f6ea683af655363c4044b9a8c47a3b344 /testsuite/tests/parser/should_fail/T9225.hs
parentb1d6a6087cdc94f47075f0ad102a167c11b1bf8a (diff)
downloadhaskell-5971ad56afbdadc9af1cf9e8d708783d2fddbd95.tar.gz
Syntax check package-qualified imports (#9225)
Version numbers are not allowed in the package name of a package-qualified import. Reviewed By: austin, ezyang Differential Revision: https://phabricator.haskell.org/D755
Diffstat (limited to 'testsuite/tests/parser/should_fail/T9225.hs')
-rw-r--r--testsuite/tests/parser/should_fail/T9225.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T9225.hs b/testsuite/tests/parser/should_fail/T9225.hs
new file mode 100644
index 0000000000..8122779b63
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/T9225.hs
@@ -0,0 +1,4 @@
+module T9225 where
+-- Should be a parse error:
+-- version numbers not allowed in package qualified imports
+import "some-package-0.1.2.3" Some.Module