Adapt control-flow graph to record patterns

This commit is contained in:
Chris Smowton
2023-11-01 18:22:25 +00:00
parent 556feb31f0
commit 05addde957
5 changed files with 89 additions and 17 deletions

View File

@@ -84,6 +84,23 @@ public class Test {
break;
}
switch(thing) {
case A(B(int x, String y), float z):
break;
default:
break;
}
switch(thing) {
case A(B(var x, var y), var z):
break;
default:
break;
}
}
}
record A(B b, float field3) { }
record B(int field1, String field2) { }