Skip to content

Commit

Permalink
Add test that ensures '==' allows const formals
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Feb 7, 2025
1 parent 319a9d5 commit 8cf16b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/test/resolution/testOperatorOverloads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ static void test4() {
var x : int;
}
var a : R;
var b : R;
var x = a == b;
proc foo() {
const a : R;
const b : R;
return a == b;
}
var x = foo();
)"""";

QualifiedType initType = resolveTypeOfXInit(context, program);
Expand Down

0 comments on commit 8cf16b6

Please sign in to comment.