We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4020c03 commit 633f32eCopy full SHA for 633f32e
tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn4120.UnitTests/Test_SourceGeneratorsDiagnostics.cs
@@ -984,16 +984,17 @@ public partial class SampleViewModel : ObservableObject
984
public async Task InvalidPartialPropertyLevelObservablePropertyAttributeAnalyzer_ReturnsByRefLike_Warns()
985
{
986
const string source = """
987
- using System;
988
using CommunityToolkit.Mvvm.ComponentModel;
989
990
namespace MyApp
991
992
public partial class SampleViewModel : ObservableObject
993
994
[{|MVVMTK0054:ObservableProperty|}]
995
- public partial Span<char> {|CS9248:Name|} { get; set; }
+ public partial RefStruct {|CS9248:Name|} { get; set; }
996
}
+
997
+ public ref struct RefStruct;
998
999
""";
1000
0 commit comments