Skip to content

Commit

Permalink
add test for x.T recursive summoning (zio#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitlangton authored Apr 8, 2022
1 parent d9cfa1e commit e8778c6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ abstract class SharedTagTest extends AnyWordSpec with XY[String] with TagAsserti
assert(tag.tag.typeArgs.head != tag0.tag)
}

"DOES synthesize Tags for abstract types (val x; x.T)" in {
val x = new SomeTrait {}
implicit val tag0: Tag[x.Abstract] = Tag.apply(Tag[Int].closestClass, Tag[Int].tag)
val tag = Tag[Option[x.Abstract]]
assert(tag.tag.typeArgs.head != tag0.tag)
}

}


Expand Down

0 comments on commit e8778c6

Please sign in to comment.