mirror of
https://github.com/typelevel/simulacrum.git
synced 2024-11-29 01:24:09 +03:00
Future proof subtype evidence
to unblock the community build. Ref scala/scala#7350 which moved `<:<` out of `Predef`.
This commit is contained in:
parent
662aa50f0c
commit
4ff8c3305c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
target
|
||||
.idea/
|
||||
|
@ -210,7 +210,7 @@ class TypeClassMacros(val c: Context) {
|
||||
//evidence for type args which are nested
|
||||
val equalityEvidences = simpleArgs.filterNot(_._4).map {
|
||||
case (arg, _, liftedTypeArg, _) =>
|
||||
val tEq = tq"_root_.scala.Predef.<:<[${liftedTypeArg.name}, $arg]"
|
||||
val tEq = tq"${symbolOf[_ <:< _]}[${liftedTypeArg.name}, $arg]"
|
||||
ValDef(Modifiers(Flag.IMPLICIT), TermName(c.freshName("ev")), tEq, EmptyTree)
|
||||
}
|
||||
//params to strip from method signature because they are defined on
|
||||
|
Loading…
Reference in New Issue
Block a user