-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: if a method is called with explicit params, make sure the aggreg…
…ate input is also explicit
- Loading branch information
Showing
9 changed files
with
340 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
..._lowering__calls__tests__function_with_explicit_call_statement_has_explicit_return-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
--- | ||
source: src/lowering/calls.rs | ||
expression: "unit.implementations[1]" | ||
--- | ||
Implementation { | ||
name: "main", | ||
type_name: "main", | ||
linkage: Internal, | ||
pou_type: Function, | ||
statements: [ | ||
ExpressionList { | ||
expressions: [ | ||
Allocation { | ||
name: "__foo0", | ||
reference_type: "STRING", | ||
}, | ||
CallStatement { | ||
operator: ReferenceExpr { | ||
kind: Member( | ||
Identifier { | ||
name: "foo", | ||
}, | ||
), | ||
base: None, | ||
}, | ||
parameters: Some( | ||
ExpressionList { | ||
expressions: [ | ||
Assignment { | ||
left: ReferenceExpr { | ||
kind: Member( | ||
Identifier { | ||
name: "foo", | ||
}, | ||
), | ||
base: None, | ||
}, | ||
right: ReferenceExpr { | ||
kind: Member( | ||
Identifier { | ||
name: "__foo0", | ||
}, | ||
), | ||
base: None, | ||
}, | ||
}, | ||
Assignment { | ||
left: ReferenceExpr { | ||
kind: Member( | ||
Identifier { | ||
name: "x", | ||
}, | ||
), | ||
base: None, | ||
}, | ||
right: LiteralInteger { | ||
value: 1, | ||
}, | ||
}, | ||
], | ||
}, | ||
), | ||
}, | ||
ReferenceExpr { | ||
kind: Member( | ||
Identifier { | ||
name: "__foo0", | ||
}, | ||
), | ||
base: None, | ||
}, | ||
], | ||
}, | ||
], | ||
location: SourceLocation { | ||
span: Range( | ||
TextLocation { | ||
line: 9, | ||
column: 12, | ||
offset: 171, | ||
}..TextLocation { | ||
line: 9, | ||
column: 24, | ||
offset: 183, | ||
}, | ||
), | ||
}, | ||
name_location: SourceLocation { | ||
span: Range( | ||
TextLocation { | ||
line: 8, | ||
column: 17, | ||
offset: 154, | ||
}..TextLocation { | ||
line: 8, | ||
column: 21, | ||
offset: 158, | ||
}, | ||
), | ||
}, | ||
overriding: false, | ||
generic: false, | ||
access: None, | ||
} |
Oops, something went wrong.