package test
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- test
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class CompileTimeMacros extends AnyRef
- class IllTypedMacros extends AnyRef
- class TypeTrace[T] extends AnyRef
- class TypeTraceMacros extends AnyRef
Value Members
- def sameTyped[T](t1: ⇒ T)(t2: ⇒ T): Unit
- macro def showType[T](t: ⇒ T): String
- macro def showType[T]: String
- def typed[T](t: ⇒ T): Unit
- object TypeTrace
-
object
compileTime
Utility that measures the compilation time of a code fragment.
Utility that measures the compilation time of a code fragment.
compileTime
takes a code fragment asString
, measures the time it takes to parse and typecheck it and returns that time as aFiniteDuration
.Example:
scala> compileTime(""" Generic[(Int, Option[String])] """) res0: FiniteDuration = 43153718 nanoseconds
-
object
illTyped
A utility which ensures that a code fragment does not typecheck.
A utility which ensures that a code fragment does not typecheck.
Credit: Stefan Zeiger (@StefanZeiger)