defaultExtension

Part of workaround for DMD Issue #12111

  1. Path!C defaultExtension(Path!C path, C2[] ext)
  2. Path!C defaultExtension(Path!C path, Ext!C ext)
  3. immutable(Unqual!C1)[] defaultExtension(C1[] path, C2[] ext)
    @trusted pure
    immutable(Unqual!C1)[]
    defaultExtension
    (
    C1
    C2
    )
    (
    in C1[] path
    ,
    in C2[] ext
    )
    if (
    isSomeChar!C1 &&
    is(Unqual!C1 == Unqual!C2)
    )

Meta