Class: Dhall::TypeChecker::RecordSelection::TypeSelector
- Defined in:
- lib/dhall/typecheck.rb
Instance Method Summary collapse
-
#initialize(union) ⇒ TypeSelector
constructor
A new instance of TypeSelector.
Methods inherited from Selector
Constructor Details
#initialize(union) ⇒ TypeSelector
Returns a new instance of TypeSelector.
612 613 614 615 616 617 |
# File 'lib/dhall/typecheck.rb', line 612 def initialize(union) normalized = union.normalize TypeChecker.assert normalized, Dhall::UnionType, "RecordSelection on #{normalized}" @fetch_from = normalized.constructor_types end |