Skip to content

Instantly share code, notes, and snippets.

@onyxmaster
Last active August 27, 2017 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onyxmaster/911c05ec8dd2fe720e7d747b99a235bb to your computer and use it in GitHub Desktop.
Save onyxmaster/911c05ec8dd2fe720e7d747b99a235bb to your computer and use it in GitHub Desktop.
public interface IA
{
Task F();
}
public class A : IA
{
public async Task F() => await Task.Delay(0).ConfigureAwait(false);
}
static class Program
{
static void Main()
{
A a = new A();
IA ia = a;
a.F(); // CS4014 triggered here...
ia.F(); // ... but not here :(
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment