Skip to content
  • Richard Eisenberg's avatar
    Fix #11473. · aade1112
    Richard Eisenberg authored
    I've added a check in the zonker for representation polymorphism.
    I don't like having this be in the zonker, but I don't know where
    else to put it. It can't go in TcValidity, because a clever enough
    user could convince the solver to do bogus representation polymorphism
    even though there's nothing obviously wrong in what they wrote.
    Note that TcValidity doesn't run over *expressions*, which is where
    this problem arises.
    
    In any case, the check is simple and it works.
    
    test case: dependent/should_fail/T11473
    aade1112