Add another test for variable usage in blocks

This commit is contained in:
Gwilym Kuiper
2020-04-01 09:25:09 +01:00
parent 705fa2563a
commit abbe46c7ba

View File

@ -37,6 +37,16 @@ public class Foo {
String x = 'blah';
return [SELECT Id FROM Account WHERE Name = :x];
}
public String usageInBlocks(Boolean y) {
String x = 'used variable';
if (y) {
return x;
} else {
return 'some other string';
}
}
}
]]>
</code>