Class: Dhall::TypeChecker::EmptyAnonymousType

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

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ EmptyAnonymousType



467
468
469
# File 'lib/dhall/typecheck.rb', line 467

def initialize(expr)
  @expr = expr
end

Instance Method Details

#annotateObject



471
472
473
474
475
476
# File 'lib/dhall/typecheck.rb', line 471

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