Branch: refs/heads/y2r_fixes
Home: https://github.com/yast/yast-core
Commit: 720f906966143c7c50aaa7d12e36f2a8b35e82fc
https://github.com/yast/yast-core/commit/720f906966143c7c50aaa7d12e36f2a8b35...
Author: Josef Reidinger
Date: 2013-05-02 (Thu, 02 May 2013)
Changed paths:
M libycp/src/Type.cc
Log Message:
-----------
Fix type matching for functionType so return wildcard is properly matched
Problem here is that match is not simmetric as source can match against
wildcards but not vica versa. In function it is more tricky. Previous
implementation take arguments and return value same way, but that cause problem
with matching function like any(boolean) to integer(any) that actually match
(because you want pass boolean, that is fine and want anything, so also integer
is fine), but old matching alghorhytm incorrectly mark it as unmatched.