diff --git a/Examples/test-suite/csharp/enum_thorough_runme.cs b/Examples/test-suite/csharp/enum_thorough_runme.cs index 6822af5e2..0101785d2 100755 --- a/Examples/test-suite/csharp/enum_thorough_runme.cs +++ b/Examples/test-suite/csharp/enum_thorough_runme.cs @@ -7,8 +7,8 @@ public class runme { // Anonymous enums int i = enum_thorough.AnonEnum1; if (enum_thorough.ReallyAnInteger != 200) throw new Exception("Test Anon 1 failed"); - int j = enum_thorough.AnonSpaceEnum1; - int k = AnonStruct.AnonStructEnum1; + i += enum_thorough.AnonSpaceEnum1; + i += AnonStruct.AnonStructEnum1; } { colour red = colour.red; diff --git a/Examples/test-suite/csharp/enum_thorough_simple_runme.cs b/Examples/test-suite/csharp/enum_thorough_simple_runme.cs index ebdaa10ba..5b6e13b32 100644 --- a/Examples/test-suite/csharp/enum_thorough_simple_runme.cs +++ b/Examples/test-suite/csharp/enum_thorough_simple_runme.cs @@ -7,8 +7,8 @@ public class runme { // Anonymous enums int i = enum_thorough_simple.AnonEnum1; if (enum_thorough_simple.ReallyAnInteger != 200) throw new Exception("Test Anon 1 failed"); - int j = enum_thorough_simple.AnonSpaceEnum1; - int k = AnonStruct.AnonStructEnum1; + i += enum_thorough_simple.AnonSpaceEnum1; + i += AnonStruct.AnonStructEnum1; } { int red = enum_thorough_simple.red; diff --git a/Examples/test-suite/csharp/enum_thorough_typesafe_runme.cs b/Examples/test-suite/csharp/enum_thorough_typesafe_runme.cs index aba4b6631..9bfa7c2c6 100644 --- a/Examples/test-suite/csharp/enum_thorough_typesafe_runme.cs +++ b/Examples/test-suite/csharp/enum_thorough_typesafe_runme.cs @@ -7,8 +7,8 @@ public class runme { // Anonymous enums int i = enum_thorough_typesafe.AnonEnum1; if (enum_thorough_typesafe.ReallyAnInteger != 200) throw new Exception("Test Anon 1 failed"); - int j = enum_thorough_typesafe.AnonSpaceEnum1; - int k = AnonStruct.AnonStructEnum1; + i += enum_thorough_typesafe.AnonSpaceEnum1; + i += AnonStruct.AnonStructEnum1; } { colour red = colour.red; diff --git a/Examples/test-suite/csharp/overload_template_runme.cs b/Examples/test-suite/csharp/overload_template_runme.cs index 982167356..e4910161b 100644 --- a/Examples/test-suite/csharp/overload_template_runme.cs +++ b/Examples/test-suite/csharp/overload_template_runme.cs @@ -7,8 +7,9 @@ public class runme { int f = overload_template.foo(); - int a = overload_template.max(3,4); + f += overload_template.max(3,4); double b = overload_template.max(3.4,5.2); + b++; // warning suppression // mix 1 if (overload_template.mix1("hi") != 101) diff --git a/Examples/test-suite/csharp/virtual_poly_runme.cs b/Examples/test-suite/csharp/virtual_poly_runme.cs index 3e9a2d186..9c1f79613 100644 --- a/Examples/test-suite/csharp/virtual_poly_runme.cs +++ b/Examples/test-suite/csharp/virtual_poly_runme.cs @@ -22,6 +22,7 @@ public class runme { NDouble ddc = NDouble.narrow(dc); NInt dic = NInt.narrow(ic); + dc = ddc; ic = dic; // warning suppression virtual_poly.incr(ic); if ( (i.get() + 1) != ic.get() )