Skip to content

Commit

Permalink
Merge pull request #71 from nicolasstucki/nicolasstucki-patch-1
Browse files Browse the repository at this point in the history
Simplify type show
  • Loading branch information
joroKr21 authored Feb 8, 2022
2 parents d6e17b5 + 3f40240 commit 97fa264
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/test/src/main/scala/shapeless3/test/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,5 @@ package object test {

inline def showType[T](t: => T): String = ${ impl[T] }

def impl[T: Type](using Quotes): Expr[String] = {
import quotes.reflect._
Expr(TypeRepr.of[T].show)
}
def impl[T: Type](using Quotes): Expr[String] = Expr(Type.show[T])
}

0 comments on commit 97fa264

Please sign in to comment.