So far I've only been able to come up with
https://github.com/scalamacros/kepler/commit/6722738cff9fc40465844eee2458b83e10f26682,
but sometimes it produces false negatives.
First I tried using Type.isWithinBounds (the method called by
typedTypeApply, which causes the error reported in the linked thread).
But I soon realized that isWithinBounds for PolyType(_, MethodType)
returns true, whereas isWithinBounds for MethodType returns false.
Apparently, typechecker somehow unwraps PolyTypes and checks
underlying types, but that logic is too obscure to be reproduced by
hand.
Therefore I went for manually assembling TypeApply and typechecking it
using silent, but as mentioned above, this produces false negatives.
Any better ideas?
On Sep 23, 12:49 pm, Eugene Burmako <
eugene.burm...@epfl.ch> wrote:
> Ashttp://
groups.google.com/group/scala-debate/msg/a193c140bf577cc4