CompileTimeOnly

utest.CompileError.CompileTimeOnly
case class CompileTimeOnly(pos: String, msg: String) extends CompileError

A CompileError representing a compileTimeOnly node within a tree

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait CompileError
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def check(errorPos: String, msgs: String*): Unit

Performs some basic, common checking on the compilation error object, to verify that it matches what you expect

Performs some basic, common checking on the compilation error object, to verify that it matches what you expect

Value parameters

errorPos

The expected position-message returned by the compile error. Usually something like """ true * false ^ """ This mimicks the position-message shown in the terminal, and should be a convenient way of indicating where you expect the error to occur. Pass in an empty-string to skip this check.

msgs

A list of snippets that should appear in the error message. Typically something like "value * is not a member of Boolean" to ensure that the message is what you want

Attributes

Inherited from:
CompileError
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

val normalizedPos: String

Attributes

Inherited from:
CompileErrorVersionSpecific