Class: Dhall::TypeChecker::EmptyAnonymousType

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

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ EmptyAnonymousType

Returns a new instance of EmptyAnonymousType.



490
491
492
# File 'lib/dhall/typecheck.rb', line 490

def initialize(expr)
	@expr = expr
end

Instance Method Details

#annotateObject



494
495
496
497
498
499
# File 'lib/dhall/typecheck.rb', line 494

def annotate(*)
	Dhall::TypeAnnotation.new(
		value: @expr,
		type:  Builtins[:Type]
	)
end