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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment