Facts
Parties and instances: The appellant [A.] is a national of Cameroon, born in 1981. The lower instance is the Appellate Court of the Canton of Basel-Stadt sitting as an administrative court (judgment of 7 January 2015). The parties involved in the proceedings before the lower instance were the Migration Office of the Canton of Basel-Stadt and the Department of Justice and Public Security of the Canton of Basel-Stadt, Legal Division.
Facts: The appellant entered Switzerland on 3 March 2010. In the Canton of Aargau she initially received a short-term residence permit and then a residence permit for study purposes (master's degree programme at the University of Applied Sciences and Arts Northwestern Switzerland in Olten). In 2013 the Migration Office of Basel-Stadt approved the change of canton. By application of 2 October 2013 she requested the extension of her residence permit and stated that she had enrolled in a new master's degree programme at a new institution, with a study period until 31 October 2014. On 16 December 2013 she gave birth to a son; previously, breast cancer had been diagnosed in her.
Course of proceedings: On 27 January 2014 the Migration Office rejected the extension application. The appeal to the Department of Justice and Public Security was unsuccessful (decision of 31 March 2014). By judgment of 7 January 2015 the Appellate Court dismissed the appeal.
Requests before the Federal Supreme Court: By way of subsidiary constitutional appeal, the appellant requested that the judgment be set aside and that a residence permit for study purposes be granted, or alternatively that the matter be remitted to the lower instance; subsidiarily, that it be declared that she had resided lawfully in Switzerland until the present day. No second exchange of written submissions was ordered. With the final judgment, the application for suspensive effect became moot.
Subject matter of the dispute: Non-renewal of the residence permit and removal.
Considerations
Admissible legal remedy: In the absence of an entitlement to the disputed residence permit, the appeal in public law matters is inadmissible (Art. 83 lit. c no. 2 FSCA). The only federal legal remedy available is the subsidiary constitutional appeal (Art. 113 et seq. FSCA), which the appellant expressly filed.
Standing on the merits: A constitutional appeal may be filed by anyone who has a legally protected interest (Art. 115 lit. b FSCA). A foreign national without an entitlement to the requested permit is not affected in legally protected interests and cannot challenge the decision on the merits; in particular, he cannot allege a violation of the prohibition of arbitrariness (BGE 133 I 185). This also applies to the principle of equal treatment (Art. 8 para. 1 Cst.). The principle of proportionality is not an independently invocable constitutional right (BGE 134 I 153 consid. 4.1). The principle of good faith (protection of legitimate expectations) was not sufficiently substantiated; in particular, there were no details of irreversible dispositions made on the basis of concrete actions of the authorities (cf. BGE 126 II 377 consid. 3; BGE 137 I 69 consid. 2.5.1).
Lacking current interest and interest in a declaratory ruling: The appellant argued that the study programme had ended and that she no longer depended on the extension; the factual interest was therefore lacking. Her interest in a declaration as to the lawfulness of her residence since the expiry of the earlier permit was, moreover, little substantiated. If the current interest lapses, a legally protected interest in a declaratory ruling in the same matter does not arise anew.
Procedural guarantees and impermissible complaints: Despite the lack of standing on the merits, a foreign national may allege the…