if(a是string类){代码块A,其中调用了以string类为参数的函数}else{代码块B.}但是测试程序传入了不是string类的参数,虽然会忽略代码块A,执行B,但是编译仍然不通过。
编译报什么错?