Skip to content

Instantly share code, notes, and snippets.

@micklaw
Created September 16, 2019 10:21
Show Gist options
  • Save micklaw/69171a898dd83413efab9ca0a037f590 to your computer and use it in GitHub Desktop.
Save micklaw/69171a898dd83413efab9ca0a037f590 to your computer and use it in GitHub Desktop.
Does this compile?
public class Test
{
public async Task<IEnumerable<string>> AsyncMethod(string input)
{
dynamic value = "String";
var awaitedIEnumerableStringList = await SomeMethod(value);
return awaitedIEnumerableStringList;
}
private IEnumerable<string> SomeMethod(string input)
{
yield return input;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment