Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0b7
Issue ID
881013
Regression
No
[IL2CPP] Using contravariance causes a compilation failure with type mismatch on IL2CPP
Steps to reproduce:
1) Open the latest attached project.
2) Build for iOS/Android with IL2CPP as the Scripting API.
- Build will fail for Android already, if you're on iOS, proceed.
3) Run on a device.
When deploying to a device, an error appears in Xcode:
Cannot initialize a parameter of type 'Act_1_t1402033311 *' with an lvalue of type 'Act_1_t1780332774 *'
The same error appears, when building for Android.
Disabling Engine Code Stripping does not help. This doesn't occur with Mono2x.
Reproduced on:
5.6.0b8, 5.2.4f1
Devices:
iPhone 6S iOS 10.3
LG Nexus 5 Android 6.0.1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
- Particles are rendered behind other GameObjects in the Scene view when the projection is Isometric
- Addressable asset download size remains non-zero when cached in WebGL Player
- The Camera type is registered as Game type when it is actually a Preview Camera
Add comment