All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rojoma.json.v3.-impl.util.MacroCommon.scala Maven / Gradle / Ivy

The newest version!
package com.rojoma.json.v3
package `-impl`.util

trait MacroCommon { this: MacroCompat =>
  import c.universe._

  protected def isType(t: Type, w: Type) = {
    // There HAS to be a better way to do this.
    // t MAY be .  w must not be!
    // since  =:= any type, reject if it looks "impossible".
    t =:= w && !(t =:= typeOf[String] && t =:= typeOf[Map[_,_]])
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy