[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / docs / ecma334 / 18.3.7.xml
1 <?xml version="1.0"?>
2 <clause number="18.3.7" title="Field initializers">
3   <paragraph>As described in <hyperlink>18.3.4</hyperlink>, the default value of a struct consists of the value that results from setting all value type fields to their default value and all reference type fields to null. For this reason, a struct does not permit instance field declarations to include variable initializers. <example>[Example: As such, the following example results in one or more compile-time errors: <code_example><![CDATA[
4 struct Point  
5 {  
6    public int x = 1;  // Error, initializer not permitted  
7    public int y = 1;  // Error, initializer not permitted  
8 }  
9 ]]></code_example>end example]</example> </paragraph>
10   <paragraph>This restriction applies only to instance fields. Static fields of a struct are permitted to include variable initializers. </paragraph>
11 </clause>