Seems like weak polymorphism isn't working =( I tried to fix it by myself, but it was very hard, code base is complicated enough for me. I think that something wrong at generic-type.js in changeAll method. When hegel tries to change return type () => <_a> to () => 1sourceTypes and targetTypes become empty arrays after sourceType.reduce and then this.subordinateType.changeAll don't change anything.
It would be great if you give me a hint to fix this, and I could take a look one more time, but more closely. But if it's hard to fix it would be better if you take this issue
Seems like weak polymorphism isn't working =( I tried to fix it by myself, but it was very hard, code base is complicated enough for me. I think that something wrong at
generic-type.js
inchangeAll
method. When hegel tries to change return type() => <_a>
to() => 1
sourceTypes
andtargetTypes
become empty arrays aftersourceType.reduce
and thenthis.subordinateType.changeAll
don't change anything.It would be great if you give me a hint to fix this, and I could take a look one more time, but more closely. But if it's hard to fix it would be better if you take this issue
https://jsmonk.github.io/hegel/try#GYVwdgxgLglg9mABAQwDYHdkE8DOAKADwEpEBvAKESsQCcBTKEGpUSWBRPEi632hpkgIBuStQC+5SeQgIcUFBmw4AciFSpEAXkWZceMOtQkA9CcQxIcGvWiIoWAA51teIA