Open srg-kostyrko opened 4 years ago
https://hegel.js.org/try#GYVwdgxgLglg9mABFApgZygChmADiKALkXAGsw4B3MASkQG8AoRRGYRTKAT1xTnZz4oiALxjEAcjgAjAFYpoExADJlrPAUQBCcWBAAbfXSYsW+lMIBOKYDhQATUeqEBuRAHp3iOKWeaYaN5yCsIAFijWzIgAvoxRbByCmjoiiHqGKmrcvPx+wmKpUsGKxlFmFojWtmAOTklQbp6IEZZwlnmsgTUAbhFRsdFAA
for some reason, if we first check that variable is not null and after that use typeof check - variable is refined to never if we reverse check order - everything works
typeof
never
@srg-kostyrko, link is pointed to localhost) Can you point it to Hegel's playground?
I updated the link
https://hegel.js.org/try#GYVwdgxgLglg9mABFApgZygChmADiKALkXAGsw4B3MASkQG8AoRRGYRTKAT1xTnZz4oiALxjEAcjgAjAFYpoExADJlrPAUQBCcWBAAbfXSYsW+lMIBOKYDhQATUeqEBuRAHp3iOKWeaYaN5yCsIAFijWzIgAvoxRbByCmjoiiHqGKmrcvPx+wmKpUsGKxlFmFojWtmAOTklQbp6IEZZwlnmsgTUAbhFRsdFAA
for some reason, if we first check that variable is not null and after that use
typeof
check - variable is refined tonever
if we reverse check order - everything works