Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>typepal</artifactId>
<version>0.17.0</version>
<version>0.17.1-SNAPSHOT</version>
<!-- <scope>provided</scope> for shade plugin it can't be provided. At least the rascal dependency in typepal should be provided -->
<scope>compile</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ void collect(current: (Expression) `<Expression e> [ <OptionalExpression ofirst>
// ---- fieldAccess

void collect(current: (Expression) `<Expression expression> . <Name field>`, Collector c){
c.useViaType(expression, field, {fieldId(), keywordFieldId()});
c.useViaTypeNoAutoFact(expression, field, {fieldId(), keywordFieldId()});
c.calculate("field access", current, [expression, field],
AType(Solver s){
expType = s.getType(expression);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ test bool ADTWithTypeParameterAndKW2() = checkModuleOK("
void f() { D[int] x = d1(10); int m = x.kw; }
");

test bool ADTWithTypeParameterAndKW3() = checkModuleOK("
test bool ADTWithTypeParameterAndKW3() = unexpectedTypeInModule("
module ADTWithTypeParameterAndKW3
data D[&T] = d1(&T n, &T kw = n);
void f() { D[int] x = d1(10); str m = x.kw; }
Expand Down
Loading