Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ libraryDependencies += "org.rudogma" %%% "supertagged" % "2.0-RC2"
# Bytecode

For those who want to check bytecode, have a look at
- [ShowMeByteCode.scala](https://github.com/Rudogma/scala-supertagged/blob/master/shared/src/test/scala/supertaggedtests/misc/ShowMeByteCode.scala)
- [ShowMeByteCode.javap.txt](https://github.com/Rudogma/scala-supertagged/blob/master/shared/src/test/scala/supertaggedtests/misc/ShowMeByteCode.javap.txt)
- [ShowMeByteCode.scala](https://github.com/rudogma/scala-supertagged/blob/master/tests/src/test/scala/supertaggedtests/misc/ShowMeByteCode.scala)
- [ShowMeByteCode.javap.txt](https://github.com/rudogma/scala-supertagged/blob/master/tests/src/test/scala/supertaggedtests/misc/ShowMeByteCode.javap.txt)



Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/supertagged/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ package object supertagged {
/**
* Thanks @eld0727 from https://t.me/scala_ru for feature request
*/
final def unapply(v: Type): Option[T] = Some(v)
final def unapply(v: Type): Some[T] = Some(v)


final def untag[C](c:C)(implicit R:Remove[C,T,Tag]):R.Out = unsafeCast(c)
Expand Down Expand Up @@ -194,7 +194,7 @@ package object supertagged {

@inline final def raw(c:Type):T = unsafeCast(c)

@inline final def unapply(v: Type): Option[T] = Some(v.asInstanceOf[T])
@inline final def unapply(v: Type): Some[T] = Some(v.asInstanceOf[T])

@inline def lift[F[_]](implicit F:F[T]):F[Type] = unsafeCast(F)
}
Expand Down Expand Up @@ -224,7 +224,7 @@ package object supertagged {
/**
* Potentially unsafe if you will use it elsewhere except `match` block
*/
final def unapply(b:T):Option[Raw] = Some(unsafeCast(b))
final def unapply(b:T):Some[Raw] = Some(unsafeCast(b))
}
object Extractor {
private val stub = new Extractor[Any,Any]()
Expand Down