Skip to content

Commit

Permalink
Misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
cston committed Jun 21, 2023
1 parent 019790a commit a375464
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ static void Main()
var x = new[] { new int[0], [1, 2, 3] };
x.Report(includeType: true);
var y = new[] { new[] { new int[0] }, [[1, 2, 3]] };
y.Report(true);
y.Report(includeType: true);
}
}
""";
Expand All @@ -871,7 +871,7 @@ static void Main()
var x = new[] { new byte[0], [1, 2, 3] };
x.Report(includeType: true);
var y = new[] { new[] { new byte[0] }, [[1, 2, 3]] };
y.Report(true);
y.Report(includeType: true);
}
}
""";
Expand Down Expand Up @@ -935,7 +935,7 @@ static void Main(string[] args)
var x = b ? new int[0] : [1, 2, 3];
x.Report(includeType: true);
var y = b ? [new int[0]] : [[1, 2, 3]];
y.Report(true);
y.Report(includeType: true);
}
}
""";
Expand Down Expand Up @@ -1280,7 +1280,6 @@ static void Main()
CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "System.Int64[][1], System.Int64[][3], ");
}

// PROTOTYPE: Test other nested collection type cases, such as F<T>(List<T[]> x, List<T>[] y) with F([[1]], [[2]]);
[Fact]
public void TypeInference_14()
{
Expand Down

0 comments on commit a375464

Please sign in to comment.