Skip to content

samupra/case-class-checker

Repository files navigation

CaseClassChecker

Macro implementation to check if something is case class at compile time

Currently, no maven central dependency available, so I suggest to clone this repo and run

     sbt publish-local

Then, To use this library, simply do

    import com.net.samupra.macros.caseclasschecker.CaseClassChecker._

    case class B(x : Int, y : Int)
    class T(x : Int)

    check[B], it should pass at compile time
    check[T], will not compile!

About

Macro implementation to check if something is case class at compile time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages