[w32handle] Stop returning 0 in every cases for locking/unlocking (#3926)
[mono.git] / mcs / tools / tuner / Mono.Tuner / CheckVisibility.cs
index 144702556aa2fb68ecbffdf649779bad3fdd0b92..df553db5abe7470398c3518866735a875abd8bc3 100644 (file)
@@ -86,8 +86,8 @@ namespace Mono.Tuner {
 
                void CheckInterfaces (TypeDefinition type)
                {
-                       foreach (TypeReference iface in type.Interfaces) {
-                               if (!IsVisibleFrom (type, iface)) {
+                       foreach (var iface in type.Interfaces) {
+                               if (!IsVisibleFrom (type, iface.InterfaceType)) {
                                        ReportError ("Interface `{0}` implemented by `{1}` is not visible",
                                                iface, type);
                                }