Fix Issue 3013 - Duplicate error message on calling a function with a type
Merge pull request #2786 from yebblies/issue3013

Issue 3013 - Duplicate error message on calling a function with a type