Skip to content

Commit

Permalink
Trying to solve unpredictable behaviour of getCurrentRascalTplVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Oct 7, 2024
1 parent 73dcf90 commit ea9d549
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,15 @@ public str key_grammar = "grammar";
public str key_ADTs = "ADTs";
public str key_common_keyword_fields = "CommonKeywordFields";

str currentRascalTplVersion = "2.0.0";

bool isValidRascalTplVersion(str version){
return equalVersion(version, currentRascalTplVersion);
}
bool isValidRascalTplVersion(str version)
= equalVersion(version, currentRascalTplVersion);

str getCurrentRascalTplVersion() = currentRascalTplVersion;

str currentRascalTplVersion = "2.0.0";

data TModel (
str rascalTplVersion = getCurrentRascalTplVersion()
str rascalTplVersion = "2.0.0"
);

// Define alias for TypePalConfig
Expand Down

0 comments on commit ea9d549

Please sign in to comment.