(C) Defendant's title raised by denial-Effect of dismissal. In action where the plaintiff is required to establish title to any fund or property, including without limitation any ejectment, replevin, quiet title, partition, equitable, legal or other action, the defendant in his answer may deny the plaintiff's claim of title and thereby place in issue the defendant's title or interest therein. If the defendant prevails under such an answer he shall be entitled to a judgment or decree enunciating his title or interest and any proper negative or affirmative relief against the plaintiff consistent with his proof. Unless the defendant joins in the notice of dismissal, no voluntary dismissal by the plaintiff in such cases shall be allowed without prejudice after the plaintiff has obtained possession of the property or fund or other relief with respect thereto by posting bond, or after the defendant by answer (whether by denial, affirmative defense, counter-claim or cross-claim) has placed title in issue.
1 IC 34-1-11-1 to 34-1-11-48.