illegal combination of types

illegal combination of types