-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more first-class Span tests #75414
Conversation
|
||
class C | ||
{ | ||
public static implicit operator C(string s) => new C(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReadOnlySpan<int> M(Span<int> s) => s; | ||
} | ||
"""; | ||
var comp2 = CreateCompilation(source2, [comp1Ref]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we're doing a retargeting test, it's usually good practice to explicitly specify the underlying TFM for the second compilation, so we can be sure that it's a different TFM from the assembly that will be retargeted.
Test plan: #73445