Skip to content

Commit

Permalink
Fixed invalid DebuggerDisplay attributes on array views.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rs-mt committed Mar 10, 2019
1 parent 25fe4f8 commit 4a92499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/ILGPU/ArrayView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface IArrayView<T> : IArrayView<T, Index>
/// </summary>
/// <typeparam name="T">The element type.</typeparam>
[DebuggerTypeProxy(typeof(DebugArrayView<>))]
[DebuggerDisplay("Index = {Index}, Length = {Length}, Source = {Source}")]
[DebuggerDisplay("Extent = {Extent}, Length = {Length}")]
public readonly struct ArrayView<T> : IArrayView<T>
where T : struct
{
Expand Down
2 changes: 1 addition & 1 deletion Src/ILGPU/ArrayViews.tt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace ILGPU
/// </summary>
/// <typeparam name="T">The element type.</typeparam>
[DebuggerTypeProxy(typeof(DebugArrayView<>))]
[DebuggerDisplay("Index = {Index}, Extent = {Extent}")]
[DebuggerDisplay("Extent = {Extent}, Length = {Length}")]
[StructLayout(LayoutKind.Sequential)]
public readonly partial struct <#= typeName #><T> : IArrayView<T, <#= indexType #>>
where T : struct
Expand Down

0 comments on commit 4a92499

Please sign in to comment.