scala-commons
scala-commons copied to clipboard
Handle thrown exception outside the monadic context of Task
Task(sth).map(throw Error()) doesn't lead to failing the Task, because throw Error() has Nothing type, so it has also lambda type. If such a check is possible, it should be included in commons-analyzer.