**Describe the bug** When we declare a variable without value, there is an error in type inference. ``` result: ResultEntity; if(command.isSomething) { result = this.repo.getById(command.id).ifError(); } ```