Open matjin opened 2 years ago
*Validate that the description appears on inline-allocated resources and modify PR accordingly.
For cases like:
return this.TestObject(X, new StreamReader())
where TestObject has a StreamReader field fieldName -- we end up reporting something like "leak on n$5.fieldName". Add description i.e. "leak on n$5.fieldName allocated at line Y by new StreamReader()"
Rather than report n$X, we should report "resource created in method X at line Y" -- OCaml backend needs to be modified to use my changes here https://github.com/microsoft/infersharp/pull/110