我正在使用自定義Predef
和-Yno-predef
標誌。它基本上是SlamData's one的副本。拼合scala.immutable.Seq與-Yno-predef標誌
當我試圖壓平嵌套不變Seq
館藏珍品我收到錯誤:
No implicit view available from my.Predef.Seq[String] => scala.collection.GenTraversableOnce[String].
如果我把import scala.Predef._
它會再次編譯。我試圖調查scala.Predef
和scala
程序包對象,但是當我試圖複製TraversableOnce
's,Traversable
或Seq
的定義時,它並沒有幫助。
有人知道vanilla predef的哪一部分負責產生這種隱式?
預覽語法樹的好方法:) –