dissenting.
I cannot agree to uphold the validity of any contract which is contrary to law, morality and public policy. That such should not be upheld has always been established law. Campbell v. Prater, 64 Wyo. 293, 191 P.2d 160 (1948); Takahashi v. Pepper Tank & Contracting Co., 58 Wyo. 330, 131 P.2d 339 (1942); Lingle v. Snyder, 160 F. 627 (8th Cir. 1908); Tanno v. Eby, 78 Ohio App. 21, 68 N.E.2d 813 (1946); Spurgeon v. McElvain, 6 Ohio 442 (1834); Rock v. Ekern, 162 Wis. 291, 156 N.W. 197 (1916); Goodrich v. Tenney, 144 Ill. 422, 33 N.E. 44 (1893).
At the outset, I emphasize that I do not find appellant’s position in the situation any better than that of appellee. Another long established equitable principle is that “he who comes into equity must come with clean hands.” Takahashi v. Pepper Tank & Contracting Co., supra; Claus v. Farmers & Stockgrowers State Bank, 51 Wyo. 45, 63 P.2d 781 (1936). See Williams v. Weber Mesa Ditch Extension Company, Inc., Wyo., 572 P.2d 412 (1977). In this instance, I would find both parties to have contracted contrary to law, morality and public policy, and I would reverse the district court with instructions to dismiss the action and leave the parties in the situation in which they placed themselves.1
In stating as follows, the majority opinion recognizes the fact that the relationship between appellant and appellee was illegal, immoral and contrary to public policy:
“Wyoming does not recognize the doctrine of common-law marriage. In re Roberts’ Estate, 58 Wyo. 438, 133 P.2d *597492 (1943); and In re Reeves’ Estate, 58 Wyo. 432, 133 P.2d 503 (1943). In this state, living arrangements between a man and woman must be formalized by the state before the traditional protections of the marriage relationship can be invoked. * * *”
The majority opinion then separates one of the aspects of that relationship and treats it in a contrary fashion. It approves that which is normally a property settlement agreement between parties who are dissolving the marriage relationship and which is an integral part of that flowing from the relationship as something foreign thereto and enforceable even without the foundation upon which it rests. And in doing so, it attempts an inconsistent distinction by adding a caveat that it would deny enforcement of such agreement “as being against public policy” if it has “meretricious sexual services as its consideration.” It is forced and false reasoning to conclude that part of the consideration for the relationship of the parties and that which flowed therefrom had nothing to do with sex:
“ ‘Meretricious’ spouse describes a relationship where the parties knew they were cohabitating without marriage. * *” Carlson v. Olson, Minn., 256 N.W.2d 249, n. 2, p. 252 (1977). See Workmen's Compensation Appeal Board v. Worley, 23 Pa.Cmwlth. 357, 352 A.2d 240 (1976).
“Meretricious” is defined in 57 C.J.S. at p. 1067, and in Black’s Law Dictionary, 5th Ed., at p. 891 as:
“Of the nature of unlawful sexual connection. The term is descriptive of the relation sustained by persons who contract a marriage that is void by reason of legal incapacity.”
The meretricious • aspect was present throughout the relationship between appellant and appellee, including the purchase of a house, its upkeep, its improvement, and the birth of a child to them during the period. It flowed into and permeated the breakup of such relationship, including division of property.
The recognition of the special relationship involved in a marriage is well established in case law and legislation. The nature of marriage, qualifications for entering the marriage contract, formalities for becoming married, rights and liabilities resulting therefrom — particularly to preserve the separate property rights of the wife, and the method of dissolution and results thereof — including disposition of property acquired through the efforts of each party and of both parties, are specifically set forth in § 20-1-101, et seq., W.S.1977. The crimes of sexual assault — but with a marital exception, and of prostitution are set forth in §§ 6-4-301, et seq. and 6-5-106, et seq., W.S.1977.
Until now, the marital relationship has received support through law and public policy. No matter how carefully the words are chosen or how great the effort to view this situation in a myopic fashion and thus exclude all other incidents normal to a marriage, the plain fact exists that both parties have assumed a relationship that is recognizable in law, morals and public policy only if the legal requirements for such relationship are met. For either of them to ask the courts to disregard this fact but sanction an aspect flowing from such relationship is impertinent. For the court to accede to such request is but another failure by the court to maintain the standards and principles upon which our society and nation were founded and which are essential to their successful continuance.
The majority opinion purports to avoid the obvious and the established law by limiting the transaction to one for a settlement of claims on theories of unjust enrichment or quantum meruit “arising out of her labors on the house (which resulted in its enhanced value) and in maintaining and managing the household during their unmarried years together.” But the transaction cannot be so limited. The claims flow from a pseudo-marital relationship and are premised on an implied contract resulting therefrom.
The attempt to support a distinction between this case and established law on the basis that this case is premised on theories of quantum meruit and unjust enrichment *598rather than implied contract fails for three reasons.
One, quantum meruit, unjust enrichment contracts implied in law and quasi contracts are synonymous in that they all result from an inference of an obligation or duty without regard to the actual intention of the parties for the purpose of doing justice or equity. An implied-in-fact contract, not here contended for by appellee or appellant, is a true contract in which the agreement is expressed by conduct rather than by words (as is done in an express contract). United States v. Neidorf, 522 F.2d 916 (9th Cir. 1975), cert. denied 423 U.S. 1087, 96 S.Ct. 878, 47 L.Ed.2d 97 (1976); Guldberg v. Greenfield, 259 Iowa 873, 146 N.W.2d 298 (1966); Thurston v. Cedric Sanders Company, 80 S.D. 426, 125 N.W.2d 496 (1963); Hixon v. Allphin, 76 Idaho 327, 281 P.2d 1042 (1955); Bill v. Gattavara, 34 Wash.2d 645, 209 P.2d 457 (1949); Leonard v. State, 56 Tex.Cr.R. 307,120 S.W. 183 (1909); Calamari & Perillo, Law of Contracts (2d Ed.), § 1-12 (1977). Thus, there is no difference between the theory on which this case is based and the basic theories of the cases previously decided contrary to the majority opinion.
Two, the Wyoming cases to which the distinction is directed were, in fact, presented on theories of unjust enrichment and quantum meruit. In Willis v. Willis, 48 Wyo. 403, 49 P.2d 670 (1935), the court recited plaintiffs argument on page 679 that “she can recover the reasonable value of her services.” Such recovery was denied because of the illicit relationship between the parties which relationship was known to them. The Roberts case cited by the majority opinion “to stand for the proposition that this court has not refused to enforce a contract between unmarried male and female partners living together out of wedlock” came to this court on four occasions. In re Roberts’ Estate, 58 Wyo. 438, 133 P.2d 492 (1943) was a case to determine heirship. We there held that common-law marriages were contrary to Wyoming law and public policy and that Barbara Kaiser Roberts could not inherit from Ora P. Roberts as his widow. In Roberts v. Roberts, 62 Wyo. 77, 162 P.2d 117 (1945), we held that Barbara Kaiser Roberts’ claim against the estate of Ora Pj Roberts for wages in three counts (express contract, quantum meruit, and money loaned) was timely filed. In Roberts v. Roberts, 64 Wyo. 433, 450-151, 196 P.2d 361 (1948), we allowed recovery to Barbara Kaiser Roberts on her quantum meruit claim against the estate of Ora P. Roberts inasmuch as both parties mistakenly believed they were married. In referring thereto, the court said at page 367:
“ ‘There remains for disposition, then, the question as to whether or not the plaintiff is entitled to recover under an implied contract. It appears to be a well settled rule “that a woman who knowingly and voluntarily lives in illicit relations with a man cannot recover on an implied contract for services rendered him during such relationship. Not only does the relationship as, of husband and wife negative that of master and servant, but, such cohabitation, being in violation of principles of morality and chasity [sic], and so against public policy, the law will not imply a promise to pay for services rendered under such circumstances.” ’
“Respondent contends that since this court determined in the Roberts’ case cited above that plaintiff and Roberts were not married, their relationship was illicit and therefore the rule in the Willis case would prevent recovery upon an implied contract. Other cases cited by respondent are cases where the woman knew the relation to be illicit, the respondent contending that it is only in a case where the man has been guilty of fraud that the woman may recover. It must be recognized that most of the cases found on the subject are either cases where the woman knowingly entered into an illicit affair with the man or was induced by fraud on his part to enter into the relationship. Those cases do not fit the facts in the case at bar because here both parties believed their common law marriage to be valid.”
The case last came to us on a petition for rehearing which was denied. Roberts v. *599Roberts, 64 Wyo. 455, 197 P.2d 697 (1948). Quantum meruit was involved in both the Willis case and the Roberts case. They cannot be distinguished from this case on that basis.
Three, the illegality of the transaction will prevent recovery by either party whether the theory be quantum meruit or otherwise.
“ * * * As a general rule, however, a guilty party to an illegal contract cannot recover in quasi contract for the benefit conferred. [Citation.] That the application of this rule may leave one of the parties unjustly enriched is generally deemed unimportant since the purpose of the rule is not to effect justice between the parties, but to discourage transactions in derogation of the public interest.” Ryan v. Mike-Ron Corp., 226 Cal.App.2d 71, 37 Cal.Rptr. 794, 796 (1964).
See Cole v. Brown-Hurley Hardware Co., 139 Iowa 487, 117 N.W. 746 (1908); Cashin v. Pliter, 168 Mich. 386, 134 N.W. 482 (1912).
The so-called settlement agreement is not one for settlement of doubtful claims. It is one for settlement of claims which are illegal, immoral and contrary to public policy. Forbearance from doing that which the promisee cannot do legally is no consideration for a promise. Horvath v. Sheridan-Wyoming Coal Co., 58 Wyo. 211, 131 P.2d 315 (1942). In this instance, appellee can point to no consideration which is not a part of the illegal marital relationship. The suggestion that the consideration is forbearance from suing appellant to hold up a real estate sale is suggesting that the consideration is that which appellee has no legal right to do and which cannot be a proper consideration. The suggestion that the consideration was in an oral agreement to acquire and develop real property not only fails because of its affinity to the pseudo-marriage relationship which was illegal, immoral and contrary to public policy, but it also fails as being contrary to § 16-1-101, W.S.1977, the Wyoming Statute of Frauds.
Appellant should not be permitted to use a smoke screen to do indirectly that which the law prohibits her from doing directly.
. This matter probably would not have been in court if appellee had demanded that her name be included on the deed to the real property when it was purchased at a time when the relationship of the parties was more pacific.