diff options
author | sheaf <sam.derbyshire@gmail.com> | 2023-05-11 13:26:02 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-05-15 11:26:59 -0400 |
commit | 5b9e9300c3766a3ef4b19a2274ecc6e8c56fe86c (patch) | |
tree | 64e0f259a4df2d622f2afe7d6144fc3f6d056490 /testsuite | |
parent | a5451438bcf3a912910e7c2a5d40dfedfa7d1a4a (diff) | |
download | haskell-5b9e9300c3766a3ef4b19a2274ecc6e8c56fe86c.tar.gz |
Turn "ambiguous import" error into a panic
This error should never occur, as a lookup of a type or data constructor
should never be ambiguous. This is because a single module cannot export
multiple Names with the same OccName, as per item (1) of
Note [Exporting duplicate declarations] in GHC.Tc.Gen.Export.
This code path was intended to handle duplicate record fields, but the
rest of the code had since been refactored to handle those in a
different way.
We also remove the AmbiguousImport constructor of IELookupError, as
it is no longer used.
Fixes #23302
Diffstat (limited to 'testsuite')
0 files changed, 0 insertions, 0 deletions