Home
Feedback Tracker
Search
Configure Global Search
Log In
Transactions
T171794
Change Details
Change Details
Old
New
Diff
# Declare the following class ```csharp class LeakTest { static LeakTest leak() { return (new LeakTest()).getThis(); } LeakTest getThis() { return this; } } ``` # Invoke `leak()` # Observe `LeakTest` instances count
# Declare the following class ``` class LeakTest { static LeakTest leak() { return (new LeakTest()).getThis(); } LeakTest getThis() { return this; } } ``` # Invoke `leak()` # Observe `LeakTest` instances count
# Declare the following class
```csharp
```
class LeakTest { static LeakTest leak() { return (new LeakTest()).getThis(); } LeakTest getThis() { return this; } } ``` # Invoke `leak()` # Observe `LeakTest` instances count
Continue