Search Issue Tracker
Duplicate
Votes
0
Found in
2021.2
2021.2.12f1
2022.1
2022.2
Issue ID
1405197
Regression
No
C# default interface method only works the first time
If a single test is run it works fine, but if "Run All" is used it only uses the correct default method in the first test. Even though Intersect is always used sometimes Equals is called instead, causing the error in the tests
Reproduction steps:
1. Open the user attached project
2. Open the Test Runner window (Window > General > Test Runner)
3. Click on "PlayMode"
4. Click on "Run All"
Expected result: All tests are successful
Actual result: Some tests fail
Reproducible with: 2021.2.12f1, 2022.1.0b9, 2022.2.0a5
Could not test with: 2019.4.36f1 (C#8 not supported), 2020.3.30f1 ("Target runtime doesn't support default interface implementation" error)
-
Resolution Note (2022.2.X):
This issue has been resolved by a recent patch to the Unity Mono fork. https://github.com/Unity-Technologies/mono/pull/1551
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
This is a duplicate of issue #1365974