— This action was brought to recover on four promissory notes. A demurrer on the ground that the complaint did not state facts sufficient to constitute a cause of action was interposed, and overruled by the court. Thereupon an answer was filed admitting the execution of the promissory notes sued on, and averring that said notes had been fully'paid long prior to the commencement of this action. And also the answer avers that this action was barred by the provisions of section 4079 of the Revised Statutes of Idaho, and sets forth *225certain sections of the statute of North Carolina under which it was claimed this action was barred by virtue of the provisions of said section 4079 of the Revised Statutes of Idaho. After answering as above set forth, the defendant moved for judgment on the pleadings. The court sustained the motion, and entered judgment of dismissal, from which judgment this appeal was taken.
It appears from the record that the trial court in passing on defendant’s demurrer to the complaint held that the complaint stated a cause of action. Thereafter the defendant answered as above set forth, and then moved for judgment on the pleadings. Said motion was “based on the ground that the complaint set out four causes of action on four several promissory notes, the last of which was due on September 1, 1895, and said notes were made in Winston, North Carolina, and payable to the plaintiff at the First National Bank of Winston, North Carolina; and the answer sets out the statute of limitations of North Carolina, and pleads the same as a bar to their recovery, wherein it is shown that the said four causes of action are barred by the statute of limitations.” The foregoing quotation is from said motion. The complaint avers that said promissory notes were made and delivered at Lewiston, Idaho. The answer denies that allegation, and avers that said promissory notes were made and delivered at Winston, N. C. The complaint, on its face, does not show that said causes of action were barred by the statute of limitations. Pleading the statute of limitations of North Carolina by way of answer is deemed controverted or denied under the provisions of section 4217, of the Revised Statutes. Said section inter alia, provides that the statement of any new matter in the answer in avoidance, or constituting a defense or counterclaim, must, on the trial, be deemed controverted by the opposite party. Hence, a judgment cannot be rendered, based on new matter averred in the answer, without a trial, as all new matter thus pleaded is deemed denied by the opposite party, and the party averring such new matter is put on his proof. (Curtiss v. Sprague, 49 Cal. 301; Water Co. v. Raynor, 57 Cal. 588; Williams v. Dennison, 94 Cal. 540, 29 Pac. 946; Rankin v. Sisters of Mercy, 82 Cal. 88, 22 Pac. *2261134.) Under the issues as made by the pleadings in the trial of the action, the plaintiff would have the right to show the nonexistence of the statute of limitations of North Carolina as set out in the answer, or to confess it, and avoid it in any manner that the law might permit. For instance, it might be shown, if possible to do so, that by the laws of North Carolina, when a cause of action arises against one absent from that state, the statute of limitations does not commence to run until such person has returned to the state, and that such facts applied to the defendant in this case. There were issues of fact raised by the pleadings which required evidence to establish before the court could intelligently determine whether such issues were with the plaintiff or defendant. Therefore the court erred in granting judgment of dismissal without hearing the evidence upon such issues and thereafter deciding them. The statute of limitations was pleaded as a defense, and the scope and very existence of such statute was put in issue. That defense being new matter under the provisions of said section 4217 of the Kevised Statutes, was deemed controverted by the plaintiff. Judgment on the pleadings cannot be granted as long as there are material issues undetermined.
Counsel for appellant asks us to determine whether this cause of action arose in North Carolina. From the record we are unable to determine that question of law. The cause of action arose eo instanti when default in payment occurred, according to the terms of the promissory notes. As a time and place were specified for payment, the presumption would be that the cause of action arose then and there, in case payment was not made. If the defendant was absent from the state at that time, under statutes of limitations generally the bar of the statute would not commence to run until the opportunity to bring the suit, occurred. As to what the statute of limitations of North Calo-lina is so far as the question under consideration is concerned is a matter of allegation and proof. Counsel for appellant cites Luce v. Clark, 49 Minn. 356, 51 N. W. 1162. In that case the court asks the question: “When is a cause of action deemed to-have arisen in a particular state, territory or country within the meaning of this statute ?” referring to the statute of limitations,. *227and answers the question as follows: “All statutes of limitations in prescribing the periods have reference for the beginning of such periods to the time when the opportunity to commence the action arises.” The judgment of the court below is reversed, and the cause remanded for further proceedings. Costs of this appeal are awarded to the appellant.
(December 17, 1898.)
Huston and Quarles, JJ., concur.