Last active
August 27, 2017 16:05
-
-
Save onyxmaster/911c05ec8dd2fe720e7d747b99a235bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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