Skip to content

Commit eca6b2e

Browse files
committed
Make signature info available before collecting signature
1 parent 64a9aec commit eca6b2e

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/org/rascalmpl/compiler/lang/rascalcore/check/CollectDeclaration.rsc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,10 @@ void collect(current: (FunctionDeclaration) `<FunctionDeclaration decl>`, Collec
303303

304304
c.enterLubScope(decl);
305305
collect(decl.tags, c);
306-
<tpnames, tpbounds> = collectSignature(decl.signature, c);
307-
//println("tpnames: <tpnames>");
308-
//iprintln("tpbounds:"); iprintln(tpbounds);
309-
//
310306
scope = c.getScope();
311307
c.setScopeInfo(scope, functionScope(), signatureInfo(signature.\type));
312-
313-
308+
<tpnames, tpbounds> = collectSignature(decl.signature, c);
309+
314310
dt = defType([signature], AType(Solver s) {
315311
ft = s.getType(signature);
316312

@@ -477,7 +473,7 @@ tuple[set[str], rel[str,Type]] collectSignature(Signature signature, Collector c
477473
rtU = updateBounds(rt, minB);
478474
formalsList = [ updateBounds(fm, minB) | fm <- formalsList ];
479475
kwFormalsList = [ kwf[fieldType = updateBounds(kwf.fieldType, minB)] | kwf <- computeKwFormals(kwFormals, s) ];
480-
ft = afunc(rt, formalsList, kwFormalsList);
476+
ft = afunc(rtU, formalsList, kwFormalsList);
481477
//ft = updateBounds(afunc(s.getType(returnType), formalsList, computeKwFormals(kwFormals, s)), minB);
482478
return ft;
483479
});

0 commit comments

Comments
 (0)