rsdn / CodeJam

Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
MIT License
258 stars 35 forks source link

Array.Empty should not be included for .NET 4.6 and .NET Core 1.0 and above builds. #115

Closed NN--- closed 4 years ago

NN--- commented 4 years ago

Describe the bug .NET 4.6 and .NET Core 1.0 have Array.Empty. This creates ambiguity.

To Reproduce

using CodeJam.Collections;
using System;

var a = Array.Empty<int>();

Expected behavior No ambiguity

ndrwrbgs commented 4 years ago

Could you revise the issue to clarify that Array (the class) is the problem and not .Empty (which would be resolved based on however you directed the language to resolve Array)?

ndrwrbgs commented 4 years ago

@NN--- , could you try reproducing the issue in full rather than a snippet? This looks impossible since there isn't an Array in this library, there is only Array<T>.