Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@ public async Task SkipsConversionsBlockedByObsoleteError()
using System;
using TUnit.Core;

public readonly record struct Token(string Value)
// A plain struct, not a positional record: records need IsExternalInit, which net472 lacks.
public readonly struct Token
{
public Token(string value) => Value = value;

public string Value { get; }

public static implicit operator Token(string value) => new(value);

[Obsolete("Use a string.", error: true)]
Expand Down
Loading