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

https://d.puremagic.com/issues/show_bug.cgi?id=3013