projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #2869 from BrzVlad/feature-mod-union-opt
[mono.git]
/
mcs
/
mcs
/
class.cs
diff --git
a/mcs/mcs/class.cs
b/mcs/mcs/class.cs
index edc538e7d2ed66a09ab7b5cbd397aec15b3ac3d0..bcf7ddffa21cd928e8b8a6cbfb811c2735940f7f 100644
(file)
--- a/
mcs/mcs/class.cs
+++ b/
mcs/mcs/class.cs
@@
-940,7
+940,8
@@
namespace Mono.CSharp
TypeParameterSpec[] ITypeDefinition.TypeParameters {
get {
- return PartialContainer.CurrentTypeParameters.Types;
+ var ctp = PartialContainer.CurrentTypeParameters;
+ return ctp == null ? TypeParameterSpec.EmptyTypes : ctp.Types;
}
}