JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.09k stars 59 forks source link

Array.isArray doesn't infer type #170

Open mikhailKilin opened 4 years ago

mikhailKilin commented 4 years ago

https://hegel.js.org/try#MYewdgzgLgBArmA1mEB3MA1AhgGzgUwC4YBBAJzKwE8AeMOAWwCN8yA+GAHxiZBB3xYwMALwwoZAgG4AsACh5ASwBmACnKUqAOkUQN1VQmRpMuAgEpzMAN7yY9mKEiwmo+EhTpsefLLkBfIA

JSMonk commented 4 years ago

Currently, we don't have any mechanism for type guards. But it will be added after fixing main bugs. Thank you for your contribution ^_^.