summaryrefslogtreecommitdiff
path: root/testsuite/tests/numeric/should_run/T7014.primops
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2023-05-11 13:26:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-15 11:26:59 -0400
commit5b9e9300c3766a3ef4b19a2274ecc6e8c56fe86c (patch)
tree64e0f259a4df2d622f2afe7d6144fc3f6d056490 /testsuite/tests/numeric/should_run/T7014.primops
parenta5451438bcf3a912910e7c2a5d40dfedfa7d1a4a (diff)
downloadhaskell-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/tests/numeric/should_run/T7014.primops')
0 files changed, 0 insertions, 0 deletions