Map.VReturn

If V is a static array, opIndex() und opIndexAssign() need to return a dynamic array slicing the value.

V.init redefinition to work around DMD bug 7752: If V is a static array, then V.init is of the array base type.

  1. alias VReturn = Base[]
    class Map(V, K)
    static if(is(V Base : Base[]) && !is(V == Base[]))
    alias VReturn = Base[]
  2. alias VReturn = V

Meta