@@ -66,7 +66,16 @@ protected override TypeFlags ComputeTypeFlags(TypeFlags mask)
66
66
flags |= TypeFlags . SignatureTypeVariable ;
67
67
}
68
68
69
- flags |= TypeFlags . AttributeCacheComputed ;
69
+ // ******************************************************
70
+ // Do not add other flags here. If you're hitting asserts
71
+ // because a flag wasn't set, this is a bug in the
72
+ // calling code. The fix is not here.
73
+ //
74
+ // The calling code is asking questions that are not
75
+ // possible to answer for signature variables
76
+ // (like: is this ByRef-like? We won't know until
77
+ // a substitution happens. Any answer would be wrong.)
78
+ // ******************************************************
70
79
71
80
return flags ;
72
81
}
@@ -105,6 +114,17 @@ protected override TypeFlags ComputeTypeFlags(TypeFlags mask)
105
114
flags |= TypeFlags . SignatureMethodVariable ;
106
115
}
107
116
117
+ // ******************************************************
118
+ // Do not add other flags here. If you're hitting asserts
119
+ // because a flag wasn't set, this is a bug in the
120
+ // calling code. The fix is not here.
121
+ //
122
+ // The calling code is asking questions that are not
123
+ // possible to answer for signature variables
124
+ // (like: is this ByRef-like? We won't know until
125
+ // a substitution happens. Any answer would be wrong.)
126
+ // ******************************************************
127
+
108
128
return flags ;
109
129
}
110
130
0 commit comments