Search Issue Tracker
Duplicate
Votes
0
Found in
2021.2.0b16
2021.2.0f1
2022.1.0a12
Issue ID
1377927
Regression
Yes
[IL2CPP] Type argument of a generic class instance changes when another instance with a different argument is declared before it
Reproduction steps:
1. Open attached project "Case_1377927.zip"
2. Build and Run the Scene "SampleScene"
3. Observe the Player.log
Expected result: "Item" is written to the log file
Actual result: "Hero" is written to the log file
Reproducible with: 2021.2.0b16, 2021.2.2f1, 2022.1.0a12, 2022.1.0a15
Not reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.2.0b15, 2022.1.0a11
Notes:
- Not reproducible with Mono
- Swapping lines 14 and 15 in the "Startup.cs" script outputs "Item" to the log file, however, the type argument of "heroes" will then also become "Item"
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
- ScriptableObjects lose the variables added through the Awake() method when the ScriptableObject is selected for the first time
- [Search] NullReferenceException on selecting Search > Scene scenes
- Errors are thrown when selecting a Sprite with a custom default TextureImporter Preset
- The non-zero value is changed to 0 when entering it for the first time into the IntegerField with showMixedValue set to true
- It is not possible to move UI Toolkit Min/Max slider when using a gamepad controller
This is a duplicate of issue #1374185