summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins/T20803b.stderr
diff options
context:
space:
mode:
authorJakob Brünker <jakob.bruenker@gmail.com>2022-03-18 17:56:07 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-30 03:10:33 -0400
commitf07c7766663fa52a037aaf941fd0d34523ff2f2f (patch)
treede3288beb918e3fbe0d053ffc9bbadaed9f38477 /testsuite/tests/plugins/T20803b.stderr
parentdda46e2da13268c239db3290720b014cef00c01d (diff)
downloadhaskell-f07c7766663fa52a037aaf941fd0d34523ff2f2f.tar.gz
Give parsing plugins access to errors
Previously, when the parser produced non-fatal errors (i.e. it produced errors but the 'PState' is 'POk'), compilation would be aborted before the 'parsedResultAction' of any plugin was invoked. This commit changes that, so that such that 'parsedResultAction' gets collections of warnings and errors as argument, and must return them after potentially modifying them. Closes #20803
Diffstat (limited to 'testsuite/tests/plugins/T20803b.stderr')
-rw-r--r--testsuite/tests/plugins/T20803b.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/T20803b.stderr b/testsuite/tests/plugins/T20803b.stderr
new file mode 100644
index 0000000000..3bb08f7756
--- /dev/null
+++ b/testsuite/tests/plugins/T20803b.stderr
@@ -0,0 +1,3 @@
+parsePlugin
+
+<no location info>: A lambda requires at least one parameter