Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
类型为org.specs2.specification.core.AsExecution[scala.util.Try[org.specs2.matcher.MatchResult[String]]的证据参数的specs2隐式值_Scala_Specs2 - Fatal编程技术网

类型为org.specs2.specification.core.AsExecution[scala.util.Try[org.specs2.matcher.MatchResult[String]]的证据参数的specs2隐式值

类型为org.specs2.specification.core.AsExecution[scala.util.Try[org.specs2.matcher.MatchResult[String]]的证据参数的specs2隐式值,scala,specs2,Scala,Specs2,这不会编译: import org.specs2.concurrent.ExecutionEnv 导入org.specs2.mutable_ 导入scala.util.Using 类Specs2Solution(隐式ee:ExecutionEnv)扩展了规范{ “字符串”应该是{ 在中“包含scala”一词{ 使用(io.Source.fromURL(“https://scalacourses.com){contents=> contents.getLines().mkString.toLowe

这不会编译:

import org.specs2.concurrent.ExecutionEnv
导入org.specs2.mutable_
导入scala.util.Using
类Specs2Solution(隐式ee:ExecutionEnv)扩展了规范{
“字符串”应该是{
在中“包含scala”一词{
使用(io.Source.fromURL(“https://scalacourses.com){contents=>
contents.getLines().mkString.toLowerCase必须包含(“scala”)
}
}
}
}
错误消息是:
找不到typeorg.specs2.specification.core.AsExecution[scala.util.Try[org.specs2.matcher.MatchResult[String]]”的证据参数的隐式值,{