mirror of https://github.com/sbt/sbt.git
implicit-search-higher-kinded test did not require higher kinds- it tests the companion scope search
This commit is contained in:
parent
7cca5422c4
commit
d2f063c3b9
|
|
@ -0,0 +1,2 @@
|
|||
trait A
|
||||
object A
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
trait A
|
||||
object A {
|
||||
implicit def m[A]: M[A] = ???
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
class M[A](a: A)
|
||||
object M {
|
||||
implicit def m[A]: M[A] = ???
|
||||
}
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
# Tests if dependencies on implicit scope are tracked properly
|
||||
# We use higher kinded types in order to make type checker to
|
||||
# infer more and thus obscure true dependencies
|
||||
$ copy-file changes/A1.scala A.scala
|
||||
$ copy-file changes/B.scala B.scala
|
||||
$ copy-file changes/M.scala M.scala
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import scala.languageFeature.higherKinds
|
||||
trait A
|
||||
object A
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import scala.languageFeature.higherKinds
|
||||
trait A
|
||||
object A {
|
||||
implicit def m[MM[_], A]: MM[A] = ???
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import scala.languageFeature.higherKinds
|
||||
|
||||
class M[A](a: A)
|
||||
object M {
|
||||
implicit def m[MM[_], A]: MM[A] = ???
|
||||
}
|
||||
Loading…
Reference in New Issue