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.



457
458
459
# File 'lib/dhall/typecheck.rb', line 457

def initialize(expr)
  @expr = expr
end

Instance Method Details

#annotateObject



461
462
463
464
465
466
# File 'lib/dhall/typecheck.rb', line 461

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