kevingadd/JSIL — Issue #55: Untranslatable goto with locals passed to [out] params
Author: matra774
Created: 2011-12-27 23:05:03+00:00
State: open

HI,

I have found another case of untranslatable gotos. Here is a minimal version to reproduce it (in real time. it uses Dictionary classe, TrygetValue etc).

public object func(object o)
{
return null;
}

public bool func2(out object obj)
{
obj = null;
return false;
}

public object TestUntranslatableGotoWithOutParam()
{
object ret;
if (func2(out ret))
{
}
return func(ret);
}

This produces the following warning/error:

// Generating JS warning : Untranslatable goto encountered: goto IL_12

Matra