Fix regression caused by newly tagging all member interfaces as static
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
index 53626d4..2c184c7 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
@@ -1195,7 +1195,7 @@
 			} else if (!enclosingType.isStatic()) {
 //{ObjectTeams: member-interfaces are always (implicitly) static,
 			  // role interfaces need to be members (at any level of nesting)!
-			  if (!enclosingType.isTeam())
+			  if (!sourceType.isRole())
 // SH}
 				// error the enclosing type of a static field must be static or a top-level type
 				problemReporter().illegalStaticModifierForMemberType(sourceType);