Skip to content
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 some tests from records test plan #46466

Merged
merged 4 commits into from
Aug 4, 2020
Merged

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Jul 30, 2020

Relates to #40726 (test plan for records)

@jcouv jcouv self-assigned this Jul 30, 2020
@jcouv jcouv marked this pull request as ready for review July 31, 2020 01:01
@jcouv jcouv requested a review from a team as a code owner July 31, 2020 01:01
}
";
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
comp.VerifyDiagnostics();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.VerifyDiagnostics() [](start = 16, length = 20)

Consider calling VarifyDiagnostics on result of CompileAndVerify. That set will include any warnings that might be reported by emit phase.

}
";
CreateCompilation(src).VerifyDiagnostics(
// (2,1): error CS0267: The 'partial' modifier can only appear immediately before 'class', 'struct', 'interface', or 'void'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before 'class', 'struct', 'interface', or 'void' [](start = 91, length = 48)

Is this list adjusted in another PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I'm merged master into this PR and updated the comment now.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (iteration 1)

@jcouv
Copy link
Member Author

jcouv commented Aug 3, 2020

Since this PR contains no product code change (test and updating a resource string), I'll go ahead and merge with a single review once CI is green. Thanks

@jcouv jcouv merged commit 00c3569 into dotnet:master Aug 4, 2020
@ghost ghost added this to the Next milestone Aug 4, 2020
@jcouv jcouv deleted the records-test branch August 4, 2020 03:51
@RikkiGibson RikkiGibson modified the milestones: Next, 16.8.P2 Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants