OpenersNotesSection(Spacer1)Details

This message is generated when type coercion occurs for the indicated expression during compiled evaluation.

This message is generated only if a special option for that purpose has been set.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[CompiledFunction::cftec].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

A message is generated after an option to generate that message has been set:

SetSystemOptions["CompileOptions"->{"CompileReportCoercion"->True}];

ftest[x_]:={1}

Compile[{{x,_Real,1}},ftest[x]][{5.6}]

Clear the value of ftest:

Clear[ftest]

Reset the option:

SetSystemOptions["CompileOptions"->{"CompileReportCoercion"->False}];

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CompiledFunction, paclet:ref/CompiledFunction])}})}})