Skip to content

Commit 14f754b

Browse files
committed
remove the primary constructors
1 parent ca7cd84 commit 14f754b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/FastExpressionCompiler.IssueTests/Issue460_ArgumentException_when_converting_from_object_to_type_with_explicit_operator.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ public int Run()
1717
return 1;
1818
}
1919

20-
private sealed class TestClass()
20+
private sealed class TestClass
2121
{
2222
public TestClass2 ClassProp { get; set; }
2323
}
2424

25-
private sealed class TestClass2()
25+
private sealed class TestClass2
2626
{
27-
public static explicit operator TestClass2(int value)
28-
=> new();
27+
public static explicit operator TestClass2(int value) => new();
2928
}
3029

3130
public void Original_case1()

0 commit comments

Comments
 (0)