I am writing a function like this:
def contractXML[T](element:T):Elem = {
element match {
case element:Contract => <element> ABC </element>
......
How do I make the tag take in the element value from the parameter passed to contractXML function rather than just literally print just
<element>
?
Currently, it gives the error:
not found: value <
<element> ABC </element>, this is legal Scala code and compiles fine, so if you getnot found: value <, you must be doing something different from what you pasted above...Contractactually is. Does it convert to a string?