CompileError

utest.CompileError
See theCompileError companion object

Simplified versions of the errors thrown during compilation, for use with the utest.asserts.Asserts.compileError macro. Contains only a single message and no position since things compiled using macros don't really have source positions.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Parse
class Type

Members list

Value members

Abstract methods

def msg: String
def pos: String

Concrete 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 fields

val normalizedPos: String

Attributes

Inherited from:
CompileErrorVersionSpecific