bugfix - types should be compared with `=:=`