delivered the opinion of the court.
GUTHRIE, Justice, Retired.
The questions presented by this appeal concern the rights of lessees attaching as a consequence of a decision of the State Land Board to sell certain school lands, which they have leased through the years. The case arises out of a declaratory judgment action instituted by the Board following a delay in the attempted sale of the land *78 occasioned by the asserted claims of appellants to all appurtenant water rights, ditches, and ditch rights. The district court entered an order in favor of the Board, which determined that appellants were not entitled to a preferential right to meet the highest bid in the event the land would be sold at public auction, that they were not entitled to compensation for three water rights and all ditches and ditch rights that had been secured and developed by the predecessor in interest of appellants for irrigation of the land, and that they had forfeited their entitlement to any compensation for improvements on the land in excess of $750.00. We reverse the judgment insofar as appellants were denied the right to meet the highest bid in the event of sale and affirm the judgment as to the other aspects.
The facts are similar to those appearing in an earlier suit in this court, being
King v. White,
Wyo.,
On February 17, 1969, appellants applied for a renewal of their lease, but the Commissioner of Public Lands in a decision rendered after expiration thereof recommended that the section be sold, noting the controversy with appellants over ownership of water rights and the long-standing disagreements over the section between appellants and the Wheatland Irrigation District. The Commissioner’s decision advised that the water rights appurtenant to the land were to be sold with the land, that the purchaser would have to pay the State for these rights, and that appellants did not have a preferential right to meet the high bid in the event the land was sold. Appellants appealed the decision to the Board asserting a claim to the water rights and that they should be compensated for the appraised value thereof when Section 36 was sold. The Board entered its findings of facts and conclusions of law on February 4, 1970, which affirmed the Commissioner’s decision with respect to ownership of the water rights but ordered that appellants shall have their right to meet the high bid at the public auction.
The question of ownership of these water rights and entitlement to payment therefor was ultimately reviewed in King v. White, supra, but the case was postured upon the effect of the lease assignment in 1957. This court held that appellants secured no title to the water rights perfected by King by virtue of the assignment but only the right to the use and enjoyment of them during the term of the lease.
Following the issuance of the mandate in King v. White, supra, the Commissioner advised appellants by letter, dated November 20, 1972, of the Board’s decision to sell Section 36 at public auction for the highest responsible bid, and further advised in a letter of December 26, 1972 that they were merely lessees of an expired lease and would not be granted a preferred right at the sale. At that time appellants had acquired two quitclaim deeds, recorded on December 22, 1972, from Ester L. Hansel and Alfred Herbert King, purporting to convey to appellants all the water rights, ditches and ditch rights secured by King on this section. After the proposed sale was advertised as required by the statute, the Commissioner appeared at the courthouse in Rawlins, Wyoming, on January 26, 1973 to conduct the public auction and sale of the section and all appurtenant water rights and ditch rights. Before the auction com *79 menced, Bryan White appeared with his attorney, announcing publicly a claim of ownership to all appurtenant rights. The Commissioner held up the sale until these issues could be resolved.
The issue raised by the first count of the Board’s complaint concerns the validity of the Board’s decision of February 4, 1970, which held that appellants shall have the right to purchase the subject land for the amount of the highest responsible bid as provided by what is now denominated as § 36-9-101, W.S.1977. That statute gives a lessee of state land or a lessee holding an expiring lease at the time of sale what is commonly known in contract law as a preemptive right or right of first refusal. Appellants argue that the doctrines of estoppel and res judicata apply to final decisions of the Board and preclude the Board from denying the existence of a vested right, i. e., to meet the bid of the highest bidder at the sale. The Board concedes the holding of its earlier decision, but asserts that the decision can now be reversed because it was not in conformity with the statute. 1 Although the issue as framed by the parties is intriguing, at no stage of the proceedings have either the parties or the district court raised the question whether the allegations of this claim for declaratory relief set out a justiciable issue necessary to exercise of its jurisdiction.
Parties cannot confer jurisdiction by consent.
Church v. Quiner,
“Courts do not have the power to give legal advice or opinion. ‘The relief sought should not merely be legal advice by the courts or to give an answer to satisfy curiosity.’ [citing authorities] ‘It was not the intent of the Declaratory Judgment Statute to confer jurisdiction on the courts to be legal advisers of all the political subdivisions of this State . .” Collins v. Horten, Fla.App.,111 So.2d 746 , 751 (1959).
The stipulation of facts upon which the trial court made disposal of this case contains nothing which would demonstrate any present, real controversy between these parties. The stipulation does recite the fact that the Board of Land Commissioners had held that these appellants had a preferential right to meet the highest bid for this land and further recites that this decision was not appealed. The only other mention of this right is that the State on December 26, 1972, notified the defendant that they “will not be granted a preferential right at the January 26, 1973, sale.”
We have heretofore recognized that the Declaratory Judgment Act gives the courts no power to determine future rights or anticipated disputes or controversies and must treat them as existing and genuine.
Cranston v. Thomson,
Wyo.,
*80 In face of the fact that there is an existing and unappealed order of the Land Commissioners granting to appellants such preference right and under which they claim, this record, by virtue of the stipulation and letter of the Commissioner of December 26, puts into proper perspective what is sought by this action. It would appear that the appellees in effect proposed to the lower court that this court should advise them whether this unappealed order is still in force and effect or whether the Commissioner can properly overrule the Board and set aside such unappealed order.
This is a request for legal advice and opinion as to the effect of the Commissioner’s action and to ask the court which governs, yet this question can only arise in the event appellants exercise such right to meet the bid after such sale and in the future. It is altogether possible that the bid might be in excess of what the appellants believe to be the value of the land, it might be beyond their resources, or they might simply lose interest in buying this land. From this, it is apparent that any decision would be the “determination of a future right” and that the relief sought is for “an anticipated controversy”. 2
The first count of the Board’s complaint attacking its own ruling did not raise an actual controversy within the strictures of our Declaratory Judgment Act, and the district court lacked jurisdiction to properly consider it. Having no. greater jurisdiction of this issue than did the district court, we are obligated to order the dismissal of this count.
Ginn v. Parrish,
Wyo.,
The second issue presents a number of questions with regard to the nature of the title obtained by King when he perfected the 1908 and 1921 water rights under then existing leases and the transferability of these rights by King as a lessee of the lands owned by the State. This question was not reached in King v. White, supra, but, as the ease is now postured before the court, we must determine whether the conveyances from the heirs of King vested ownership of the water rights, ditches and ditch rights in appellants and entitled them to payment for the appraised value thereof when Section 36 is sold. The issue calls for the application of § 36-9-105, W.S.1977, which provides in pertinent part:
“If any state lands be sold upon which surface improvements, including irrigation works of any kind, have been made by a lessee, or for which water rights or proportionate interests in irrigation, reservoirs, canals, or systems, have been acquired, said improvements, irrigation works and water rights shall be appraised under the direction of the board. The purchaser of said lands, upon which improvements and irrigation works have been made, or for which water rights have been acquired as herein provided for, shall pay the owner of such improvements, irrigation works or water rights, as the case may be, the appraised value thereof, and take a receipt therefor, and shall deliver the same to the commissioner of public lands before he shall receive a patent or certificate of purchase. . .” (Emphasis supplied.) (This being § 824, R.S.1899, mentioned herein as it has been amended.)
This case must be approached with caution, and it is necessary that we confine our discussion to the unique circumstances herein, which call for a consideration of the rights of a lessee resulting from the contract and the public interest in the proper administration of the lands and waters owned by the State.
These water rights and the ditch rights and ditches necessary to serve the appropriations are appurtenant to Section 36 and, therefore, are a part and parcel of those lands.
Bard Ranch, Inc. v. Weber,
Wyo.,
When King perfected the two direct-flow rights in 1908 under a five-year lease, which expired in 1911, § 816, R.S.1899, was in full force and effect. That section, which was enacted in 1890, provided that appurtenant water rights acquired by the lessee of state lands shall become the property of the state upon expiration of the leases given to the lessee and shall not be considered as improvements subject to any reimbursement by any subsequent lessee or purchaser of the lands.
3
The contract of lease was Subject to the terms of the statute then in effect at the time of execution, and the rights of appellants as lessees that would arise by virtue of that agreement included the provisions of that statute. This court has held in a case involving an oil and gas lease on undeveloped state lands that the laws in effect and in force at the time of the making of a contract become a part thereof.
Application of Hagood,
Wyo.,
It is true that in
State ex rel. Marble v. Carey,
*82
The court in
Carey
did give lip service to the principle that repeals by implication are not favored, but it painted with a broad brush and arrived at the conclusion that § 824, as amended,
supra,
had repealed by implication § 816,
supra.
The rationale for the decision was that these statutes were not only clearly inconsistent, but that the laws expressed a clear intent by the legislature that the earlier statute be substituted and that the later provision would govern. No attempt was made in that opinion to construe the two statutes harmoniously as constituting one law;
In re Adoption of Female Child X,
Wyo.,
It is noticed that § 816, supra, remained unrepealed upon the statute books until 1929, when it was repealed by two separate enactments, being Ch. 21, Laws 1929 and Ch. 108, Laws 1929. Thus, it might also be suggested that by the failure to directly repeal § 816, supra, the legislature intended at least a prospective application of the later amendatory statute because it makes reference merely to the “owner of such water rights” and might have been directly intended to affect only such rights as were secured after the enactment of the amended version of § 824, supra, or to apply to water rights perfected before 1890. This writer cannot find any clear intention by the legislature to deprive the state of valuable property rights, which would be the effect of such holding. Slavish adherence to Carey is completely adverse to the interest of the Permanent Land Fund; and since it was based upon an absolute minimum of authority and without any consideration of certain necessary elements to determine if these sections were completely repugnant, we feel it our duty to reiterate, as we did in the earlier case affecting these parties, that Carey must be confined to the factual situation that confronted the court in that case and is not controlling authority under any other factual situations. To have held differently would have involved a constitutional question of due process upon that phase.
It logically follows that we must hold that pursuant to § 816, supra, the water rights perfected in 1908 became the property of the state when the lease, under which they were secured, expired in 1911, and that neither King nor his heirs could have conveyed the same. See the concurrence of Justice McIntyre in King v. White, supra at 590, which asserts this proposition. This, then, leads to the consideration of the status of the supplemental water right perfected in 1921, which presents & different question because of the interposition of the 1909 amendment and the necessity to consider its effect. The question, however, cannot be properly resolved without reviewing the applicability of the following portion of § 41-3-101, W.S.1977:
“. . Water being always the property of the state, rights to its use shall attach to the land for irrigation, or to such other purposes or object for which acquired in accordance with the beneficial use made for which the right receives public recognition, under the law and the administration provided thereby. . . ” (Emphasis supplied.)
This section, then denominated as § 724, W.C.S.1910, was first enacted in 1909, being the same year that the amendment in question was passed. Ch. 68, § 1, Laws 1909.
A reading of the two statutes may suggest the existence of a conflict with regard to the actual owner of the. 1921
*83
direct-flow right. Section 724,
supra,
which was effective February 20, 1909, offers the conclusion that King could not have been the “owner” of the right because it was developed for irrigation purposes on state lands and thereby became the property of the state. On the other hand, § 632, W.C.S. 1910, effective February 27, 1909, suggests that King, being the individual who acquired the water right for state lands, was the “owner” of the right and was entitled to payment for its appraised value by the purchase. We are aware of the rule that when two statutes covering the same general subject conflict, the later special statute controls over the general statute to the extent of the conflict.
State ex rel. Pearson v. Hansen,
Wyo.,
This court has previously held that an application for a permit to appropriate water for irrigation pursuant to what is now § 41 — 4-501, W.S.1977, did not necessarily have to be for the benefit of the applicant.
Scherck v. Nichols,
Even though King undertook the act of appropriating the 1921 right and further put it to beneficial use, we find that the rationale of
Scherck
is compelling here. King’s actions were appropriately those of an intermediate agent for the state, who was and is the owner of the lands that received the ultimate benefit of this appropriation. All statutes are presumed to be enacted by the legislature with a full knowledge of the existing state of the law with respect to the subject matter,
DeHerrera v. Herrera,
Wyo.,
*84 We now hold that when King secured the 1921 appropriation of water for state land, he was acting as an intermediary on behalf of the state and held this right for its use and benefit, and that pursuant to the general law in effect since 1909, neither he nor his heirs owned any interest in the right that could be conveyed separate from the land. This holding in no way adversely affects the requirement under § 36-9-105, supra, that the purchaser has to pay a lessee who acquires water rights during the term of his lease for the appraised value of these rights.
The final issue also concerns compensation for improvements and the effect of § 36-5-110, W.S.1977. That section provides that if a lessee or any other person desires to construct or make improvements upon state lands, he must seek approval from the Board of Land Commissioners when the value of the improvements will exceed $750.00. Any excess improvements erected without permission of the Board are deemed upon expiration of the lease to forfeit to and become the property of the state with the exception of improvements removed in a certain manner by the owner within 60 days from the date of the expiration of the lease. 5
Appellants have been content to limit their argument to an attack upon the district court’s apparent reliance on the statute as an alternative basis for denying compensation for the appraised value of the 1908 and 1921 water rights. While we agree that § 36-5-110, supra, which was effective April 2, 1929, cannot be given retroactive application to facts of this case, this holding, nevertheless, does not change or otherwise affect our disposition of this matter. In these circumstances, we find it unnecessary to consider the expanded arguments presented by the Board.
The declaratory judgment entered here is reversed in part and remanded to the district court with directions to dismiss the first count of the Board’s complaint for want of jurisdiction and is affirmed as to its other parts.
Notes
. Because of the basis of our disposal of this matter, we do not consider these contentions.
. The court also questions the propriety of inflicting a burden upon these appellants to appear and litigate this question for the benefit of the appellees.
. Section 816, R.S.1899, read as follows:
“All water rights which shall have become appurtenant to the lands leased aforesaid shall, upon expiration of the leases given to the lessee who made the irrigation and improvements thereto, become the property of the state, and shall not be considered as being improvements, which any subsequent lessee or purchaser thereof shall be obliged to reimburse or pay such original lessee who made such improvements thereon.”
. Section 824, R.S.1899, as it appeared prior to 1909:
“If any state lands be sold upon which surface improvements have been made by a lessee (except irrigating ditches and irrigating works), said improvements shall be appraised under the direction of the board. The purchaser of state lands upon which improvements have been made, as herein provided for, shall pay the owner of such improvements the appraised value thereof, and take a receipt therefor, and shall deliver the same to the register before he shall receive a patent or certificate of purchase. All such receipts shall be filed and preserved in the office of the register.”
. Section 36-5-110, supra, also provides that failure of the owner to obtain permission as required by the statute will not entitle him “to compensation therefor as hereinafter provided.” Section 36-5-111, W.S.1977, requires a subsequent lessee, as a condition to obtaining a lease, to pay the commissioner of public lands for the benefit and use of the owner for the appraised value of any improvements, including water rights, not forfeited under the provision of the act. These statutes appear in the chapter governing the leasing of state lands and do not expressly refer to the chapter concerning the sale of state lands. Whether compliance with § 36-5-110, supra, is a predicate for compensation under § 36-9-105, supra, is a question that need not be reached here.
