Skip to content

Commit

Permalink
Disabling some compiler warnings as they are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
einari committed May 9, 2015
1 parent d9d05cf commit e36c383
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Bifrost.Specs/Concepts/for_ConceptAs/when_equating.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ public class when_equating : given.concepts
result_of_equality_on_same_value = second_string.Equals(same_value_as_second_string);

result_of_operator_equality = first_string == second_string;
#pragma warning disable 1718 // this is the point of the spec - so ignore the warning
result_of_operator_equality_on_same_reference = first_string == first_string;
#pragma warning restore 1718
result_of_operator_equality_on_same_value = second_string == same_value_as_second_string;

result_of_inequality_operator = first_string != second_string;
#pragma warning disable 1718 // this is the point of the spec - so ignore the warning
result_of_inequality_operator_on_same_reference = first_string != first_string;
#pragma warning restore 1718
result_of_inequality_operator_on_same_value = second_string != same_value_as_second_string;

result_of_equality_on_two_different_concept_types_based_on_same_underlying_type_with_same_values
Expand Down

0 comments on commit e36c383

Please sign in to comment.