Fix issue checking func type against literal function, fix issue #630
Merge pull request #632 from josehsantos/fix-issue-type-inference

Fix issue checking func type against literal function, fix issue #630