# 警告(3402)
# 警告信息
函数 %1!s! 中无效的 %2!s! 注解.
# 产生原因
函数中内联注解不是等式变型.
函数中内联注解的等式变型右边表达式不是布尔常量.
函数的导函数注解中不是等式变型.
函数的导函数注解中等式类变型右边表达式不是函数导数名字.
函数的 smoothOrder 注解不是等式变型.
函数的 smoothOrder 注解的等式变型右边表达式不是 smoothOrder 的属性值.
# 解决方法
函数中内联注解必为等式变型且等式变型右边表达式应为布尔常量.
函数的导函数注解必为等式变型且等式变型右边表达式应为导数名字.
函数的 smoothOrder 注解必为等式变型且等式变型右边表达式应为 smooothOrder 属性值(即整型文字常量).
# 示例
model _3402_InvalidFuncAnnotationWarning
function temp
annotation (Inline = a); // Warning: 3402 a不是布尔常量
//annotation (Inline = true); // OK
input Real x;
output Real y;
algorithm
y := x + 1;
end temp;
Real a;
algorithm
temp(a);
end _3402_InvalidFuncAnnotationWarning;