|
|
|
@ -51,9 +51,11 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
|
|
|
get { |
|
|
|
get { |
|
|
|
ResolveResult rr = this.constantValue; |
|
|
|
ResolveResult rr = this.constantValue; |
|
|
|
if (rr == null) { |
|
|
|
if (rr == null) { |
|
|
|
if (unresolved == null) |
|
|
|
IConstantValue unresolvedCV = ((IUnresolvedField)unresolved).ConstantValue; |
|
|
|
return null; |
|
|
|
if (unresolvedCV != null) |
|
|
|
rr = ((IUnresolvedField)unresolved).ConstantValue.Resolve(context); |
|
|
|
rr = unresolvedCV.Resolve(context); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
rr = ErrorResolveResult.UnknownError; |
|
|
|
this.constantValue = rr; |
|
|
|
this.constantValue = rr; |
|
|
|
} |
|
|
|
} |
|
|
|
return rr.ConstantValue; |
|
|
|
return rr.ConstantValue; |
|
|
|
|