check for mixing types in "array / scalar" expressions

This commit is contained in:
Gael Guennebaud 2016-06-13 16:15:32 +02:00
parent fabae6c9a1
commit 2ca2ffb65e

View File

@ -71,6 +71,10 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
VERIFY_IS_APPROX(vf * scf , vf.template cast<complex<float> >() * scf);
VERIFY_IS_APPROX(scd * vd , scd * vd.template cast<complex<double> >());
// check scalar quotients
VERIFY_IS_APPROX(vcf / sf , vcf / complex<float>(sf));
VERIFY_IS_APPROX(vf / scf , vf.template cast<complex<float> >() / scf);
// check dot product
vf.dot(vf);
#if 0 // we get other compilation errors here than just static asserts