Browse Source

fix TypeOfExpression translation

pull/728/head
Siegfried Pammer 11 years ago
parent
commit
ef2a2c41d7
  1. 2
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

2
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -172,7 +172,7 @@ namespace ICSharpCode.Decompiler.CSharp
{ {
return new TypeOfExpression(ConvertType(inst.Type)) return new TypeOfExpression(ConvertType(inst.Type))
.WithILInstruction(inst) .WithILInstruction(inst)
.WithRR(new TypeResolveResult(compilation.FindType(typeof(Type)))); .WithRR(new TypeOfResolveResult(compilation.FindType(KnownTypeCode.Type), inst.Type);
} }
protected internal override TranslatedExpression VisitLogicNot(LogicNot inst) protected internal override TranslatedExpression VisitLogicNot(LogicNot inst)

Loading…
Cancel
Save