case class CompileTimeOnly(pos: String, msg: String) extends CompileError with Product with Serializable
A CompileError representing a compileTimeOnly
node within a tree
- Alphabetic
- By Inheritance
- CompileTimeOnly
- Serializable
- Product
- Equals
- CompileError
- CompileErrorVersionSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CompileTimeOnly(pos: String, msg: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- 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
- Definition Classes
- CompileError
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val msg: String
- Definition Classes
- CompileTimeOnly → CompileError
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val normalizedPos: String
- Definition Classes
- CompileErrorVersionSpecific
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val pos: String
- Definition Classes
- CompileTimeOnly → CompileError
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.