flags |= TypeFlags.SignatureTypeVariable;
}
- flags |= TypeFlags.AttributeCacheComputed;
+ // ******************************************************
+ // Do not add other flags here. If you're hitting asserts
+ // because a flag wasn't set, this is a bug in the
+ // calling code. The fix is not here.
+ //
+ // The calling code is asking questions that are not
+ // possible to answer for signature variables
+ // (like: is this ByRef-like? We won't know until
+ // a substitution happens. Any answer would be wrong.)
+ // ******************************************************
return flags;
}
flags |= TypeFlags.SignatureMethodVariable;
}
+ // ******************************************************
+ // Do not add other flags here. If you're hitting asserts
+ // because a flag wasn't set, this is a bug in the
+ // calling code. The fix is not here.
+ //
+ // The calling code is asking questions that are not
+ // possible to answer for signature variables
+ // (like: is this ByRef-like? We won't know until
+ // a substitution happens. Any answer would be wrong.)
+ // ******************************************************
+
return flags;
}