Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

IL2CPP generated code does not compile when using "as" operator with a Nullable Type

$
0
0
Example:
Code (csharp):
  1. int? nullableInt = 0 as int?;
When you make an XCode build this causes a compile error in the generated IL2CPP code. The error is, "No matching function for call to 'UnBoxNullable"
Another issue is that this code will crash the editor when executed.
Here's the Case# 769585.

Viewing all articles
Browse latest Browse all 10823