diff options
Diffstat (limited to 'testsuite/tests/overloadedrecflds/should_fail/T17420.stderr')
-rw-r--r-- | testsuite/tests/overloadedrecflds/should_fail/T17420.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr b/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr new file mode 100644 index 0000000000..5089f19ce2 --- /dev/null +++ b/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr @@ -0,0 +1,12 @@ +[1 of 2] Compiling T17420A ( T17420A.hs, T17420A.o ) +[2 of 2] Compiling T17420 ( T17420.hs, T17420.o ) + +T17420.hs:6:17: error: + Ambiguous occurrence ‘name’ + It could refer to + either the field ‘name’ of record ‘Human’, + imported from ‘T17420A’ at T17420.hs:4:1-14 + (and originally defined at T17420A.hs:5:22-25) + or the field ‘name’ of record ‘Dog’, + imported from ‘T17420A’ at T17420.hs:4:1-14 + (and originally defined at T17420A.hs:4:18-21) |