Punned class method and associated type break explicit import
## Summary
Consider this program that defines a class that has both an associated type named `(#)` and a method named `(#)`:
```haskell
module T25991a_helper (C(..)) where
class C a b where
type a # b
(#) :: a -> b -> ()
```
```haskell
module T25991a where
import T25991a_helper (C((#)))
```
The import fails with:
```
T25991a.hs:5:24: error: [GHC-10237]
In the import of ‘T25991a_helper’:
an item called ‘C’ is exported, but it does not export any children
(constructors, class methods or field names) called ‘#’.
|
5 | import T25991a_helper (C((#)))
| ^^^^^^
```
However, this problem does not occur if `type a # b` is commented out.
## Steps to reproduce
Compile the program shown above and observe the error.
## Expected behavior
* No error, the import is valid
* The class method `(#)` is imported
* The associated type `(#)` stays out of scope
## Environment
* GHC version used: GHC 9.10.1
issue