Const

final case class Const(attrs: Attrs, name: Member, ty: Type, rhs: Val)(implicit pos: SourcePosition) extends Defn

A unique, read-only instance of some type.

A constant definition is distinct from a constant literal, which would be represented by a Val.

trait Product
trait Equals
class Defn
class Object
trait Matchable
class Any

Value members

Inherited methods

Returns true iff this is considered as an entry point by reachability analysis.

Returns true iff this is considered as an entry point by reachability analysis.

Inherited from:
Defn
Inherited from:
Product
final def show: String

Returns a textual representation of this.

Returns a textual representation of this.

Inherited from:
Defn

Implicits

Implicits

implicit val pos: SourcePosition