Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11e3b9e

Browse files
authored
Merge pull request#48434 from Youssef1313/target-typed-new-ctor-counting
Fix FAR counting for target-typed new
2 parentsa8d9b86 +a09802d commit11e3b9e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

‎src/EditorFeatures/Test2/FindReferences/FindReferencesTests.ConstructorSymbols.vb‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,34 @@ class C
894894
AwaitTestAPIAndFeature(input,kind,host)
895895
EndFunction
896896

897+
<WpfTheory,CombinatorialData,Trait(Traits.Feature,Traits.Features.FindReferences)>
898+
<WorkItem(47987,"https://github.com/dotnet/roslyn/issues/47987")>
899+
PublicAsyncFunctionDoNotCountInstantiationTwiceWhenTargetTypedNewExists(kindAsTestKind,hostAsTestHost)AsTask
900+
Diminput=
901+
<Workspace>
902+
<ProjectLanguage="C#"CommonReferences="true">
903+
<Document>
904+
classBar
905+
{
906+
public{|Definition:$$Bar|}(){}
907+
}
908+
</Document>
909+
<Document>
910+
publicclassFoo
911+
{
912+
privatereadonlyBarbar1= [|new|]();
913+
privatereadonlyBarbar2;
914+
publicFoo(Barbar)
915+
{
916+
this.bar2=new [|Bar|]();
917+
}
918+
}
919+
</Document>
920+
</Project>
921+
</Workspace>
922+
AwaitTestAPIAndFeature(input,kind,host)
923+
EndFunction
924+
897925
<WorkItem(44288,"https://github.com/dotnet/roslyn/issues/44288")>
898926
<WpfTheory,CombinatorialData,Trait(Traits.Feature,Traits.Features.FindReferences)>
899927
PublicAsyncFunctionTestConstructorReferenceInGlobalSuppression(kindAsTestKind,hostAsTestHost)AsTask

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp