From 1afca3ea8a4229146d2154891c14c47f4e19c634 Mon Sep 17 00:00:00 2001 From: paulklint Date: Sat, 23 Nov 2024 17:42:00 +0100 Subject: [PATCH] Fixed type errors --- .../lang/rascalcore/check/tests/ChangeScenarioTests.rsc | 4 ++-- .../core/library/lang/rascalcore/compile/Compile.rsc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/tests/ChangeScenarioTests.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/tests/ChangeScenarioTests.rsc index 26656cec..e7d7b6d0 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/tests/ChangeScenarioTests.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/tests/ChangeScenarioTests.rsc @@ -13,8 +13,8 @@ import ListRelation; import util::FileSystem; bool validateBOMs(PathConfig pcfg){ - lastModRSC = (); - lastModTPL = (); + map[str,datetime] lastModRSC = (); + map[str,datetime] lastModTPL = (); nOudatedTPLs = 0; for(srcdir <- pcfg.srcs){ for(loc mloc <- find(srcdir, "rsc")){ diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/compile/Compile.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/compile/Compile.rsc index 24ac82f9..9cec7751 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/compile/Compile.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/compile/Compile.rsc @@ -129,5 +129,5 @@ list[Message] compile(str qualifiedModuleName, RascalCompilerConfig compilerConf comp_time = (cpuTime() - start_comp)/1000000; if(compilerConfig.verbose) { println("Compiled ... in ms [total]"); } - return ms.messages[qualifiedModuleName] ? []; + return toList(ms.messages[qualifiedModuleName] ? {}); } \ No newline at end of file