This commit is contained in:
jfrijters 2004-12-13 15:30:03 +00:00
Родитель 6d3150a0b9
Коммит c306928cc7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -968,13 +968,13 @@ class Compiler
ReturnCookie rc = exit as ReturnCookie;
if(rc != null)
{
if(newBlock.exits == null)
if(newBlock.IsNested)
{
rc.EmitRet(ilgen);
newBlock.exits.Add(rc);
}
else
{
newBlock.exits.Add(rc);
rc.EmitRet(ilgen);
}
}
else