ExpressibleByIntLiteral

public protocol ExpressibleByIntLiteral

Protocol for types that accept an integer literal (e.g. 42, 0xff).

All the standard integer widths conform; types outside std.numeric (for example a BigInt or a fixed-point number) can also conform to opt in to the literal syntax.

Initializers

init(intLiteral: lang.i64)

Builds an instance from an integer literal.

Defined in lang/std/core/literals.ks