Skip to content

Commit 633f32e

Browse files
committed
Remove 'Span<T>' reference for NETFX test
1 parent 4020c03 commit 633f32e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn4120.UnitTests/Test_SourceGeneratorsDiagnostics.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,16 +984,17 @@ public partial class SampleViewModel : ObservableObject
984984
public async Task InvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer_ReturnsByRefLike_Warns()
985985
{
986986
const string source = """
987-
using System;
988987
using CommunityToolkit.Mvvm.ComponentModel;
989988
990989
namespace MyApp
991990
{
992991
public partial class SampleViewModel : ObservableObject
993992
{
994993
[{|MVVMTK0054:ObservableProperty|}]
995-
public partial Span<char> {|CS9248:Name|} { get; set; }
994+
public partial RefStruct {|CS9248:Name|} { get; set; }
996995
}
996+
997+
public ref struct RefStruct;
997998
}
998999
""";
9991000

0 commit comments

Comments
 (0)