Class: Dhall::TypeChecker::EmptyAnonymousType

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

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ EmptyAnonymousType



482
483
484
# File 'lib/dhall/typecheck.rb', line 482

def initialize(expr)
  @expr = expr
end

Instance Method Details

#annotateObject



486
487
488
489
490
491
# File 'lib/dhall/typecheck.rb', line 486

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