Method: Puppet::Pops::Types::TypeMismatchDescriber#describe_POptionalType
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.rb
#describe_POptionalType(expected, original, actual, path) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
779 780 781 782 783 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 779 def describe_POptionalType(expected, original, actual, path) return EMPTY_ARRAY if actual.is_a?(PUndefType) || expected.optional_type.nil? internal_describe(expected.optional_type, original.is_a?(PTypeAliasType) ? original : expected, actual, path) end |