Class: Dhall::TypeChecker::EmptyRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/dhall/typecheck.rb

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ EmptyRecord

Returns a new instance of EmptyRecord.



546
547
548
# File 'lib/dhall/typecheck.rb', line 546

def initialize(expr)
	@expr = expr
end

Instance Method Details

#annotateObject



550
551
552
553
554
555
# File 'lib/dhall/typecheck.rb', line 550

def annotate(*)
	Dhall::TypeAnnotation.new(
		value: @expr,
		type:  Dhall::EmptyRecordType.new
	)
end