Fix coroutines yielding the same value twice

This commit is contained in:
2019-02-14 12:38:30 +01:00
parent b475bd4495
commit dbf4d8a82e

View File

@@ -122,7 +122,10 @@ namespace Upsilon.Evaluator
{
var current = coroutine.Current;
if (current is ScriptType scriptType)
{
yield return scriptType.ToCSharpObject();
continue;
}
yield return current;
}
}