• A
    Make sure nullability mismatch in constraints specified in different partial... · b252adb7
    AlekseyTs 提交于
    Make sure nullability mismatch in constraints specified in different partial declarations (types/methods) are properly detected and reported. (#35272)
    
     Make sure nullability mismatch in constraints specified in different partial declarations (types/methods) are properly detected and reported.
    
    Fixes #30229.
    Fixes #35179.
    
    Implements the following LDM decision:
    
    For partial types, the invariant matching from type inference and merging. A mismatch
    between two non-oblivious candidates produces an error. No warnings are produced.
    
    For partial methods, nullability has to match with exception for oblivious and we produce warnings.
    For the result, we use the implementation signature inside the implementation, and the
    declaration signature for the callers.
    b252adb7
NullableReferenceTypesTests.cs 3.5 MB
The source could not be displayed because it is larger than 1.0 MB. You can load it anywaydownload it instead.