Method: Puppet::Pops::Types::TypeMismatchDescriber#describe_PAnyType

Defined in:
lib/puppet/pops/types/type_mismatch_describer.rb

#describe_PAnyType(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.

API:

  • private



979
980
981
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 979

def describe_PAnyType(expected, original, actual, path)
  expected.assignable?(actual) ? EMPTY_ARRAY : [TypeMismatch.new(path, original, actual)]
end