类型为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]]”的证据参数的隐式值,{