LiteralCompat

izumi.fundamentals.platform.language.literals.LiteralCompat
object LiteralCompat extends Dynamic

To compile code with literal types using Scala 2.12, rewrite a literal like mytype["abc"] to mytype[LiteralCompat."abc".T]

Attributes

Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def constantType(literal: Expr[String])(using quotes: Quotes): Expr[{ type T; }]
transparent inline def selectDynamic(inline literal: String): { type T; }