Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X

Votes

1

Found in

2018.4

2018.4.31f1

2019.4

2020.2

2021.1

2021.2

Issue ID

1310458

Regression

No

[IL2CPP] Nullable variables become null in a generic method in IL2CPP builds

IL2CPP

-

How to reproduce:
1. Open the "SampleScene" scene in the attached "TestIl2CPP.zip"
2. Make sure IL2CPP BackEnd is selected
3. Build and run it
4. Observe the log in the Runtime Console

Expected Behavior: "BadIL2CPP System.Int32 20" is printed in the console
Actual Behavior: "BadIL2CPP System.Int32" is printed in the console

Reproducible with: 2018.4.31f1, 2019.4.20f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a4

Note:
- Only reproducible on IL2CPP
- Only reproducible in methods with Generic parameter
- According to the customer - reproducible on every platform with IL2CPP
- Not reproducible in Editor

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a8

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0b10

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.1f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.24f1

Add comment

Log in to post comment