Description
I accidentally put on outputValueCalc on and element reference that referenced a complex element. This resulted in a ClassCastException since it tried to get the primitive type when compiling the OVC.
java.lang.ClassCastException: edu.illinois.ncsa.daffodil.dsom.LocalComplexTypeDef cannot be cast to edu.illinois.ncsa.daffodil.dsom.SimpleTypeBase at edu.illinois.ncsa.daffodil.grammar.ElementBaseGrammarMixin$class.primType(ElementBaseGrammarMixin.scala:577) at edu.illinois.ncsa.daffodil.dsom.ElementBase.primType$lzycompute(ElementBase.scala:78) at edu.illinois.ncsa.daffodil.dsom.ElementBase.primType(ElementBase.scala:78) at edu.illinois.ncsa.daffodil.grammar.ElementBaseGrammarMixin$class.ovcCompiledExpression(ElementBaseGrammarMixin.scala:981) at edu.illinois.ncsa.daffodil.dsom.ElementBase.ovcCompiledExpression$lzycompute(ElementBase.scala:78) at edu.illinois.ncsa.daffodil.dsom.ElementBase.ovcCompiledExpression(ElementBase.scala:78) at edu.illinois.ncsa.daffodil.dsom.ElementBase.calcContentUnparserReferencedElementInfos(ElementBase.scala:130) at edu.illinois.ncsa.daffodil.dsom.RealTermMixin$class.contentLengthUnparserReferencedElementInfos(RealTermMixin.scala:252) at edu.illinois.ncsa.daffodil.dsom.ElementBase.contentLengthUnparserReferencedElementInfos$lzycompute(ElementBase.scala:78) at edu.illinois.ncsa.daffodil.dsom.ElementBase.contentLengthUnparserReferencedElementInfos(ElementBase.scala:78)