// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.

// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package types

// An Array represents an array type.
type Array struct {
	len  int64
	elem Type
}

// NewArray returns a new array type for the given element type and length.
// A negative length indicates an unknown length.
func ( Type,  int64) *Array { return &Array{len: , elem: } }

// Len returns the length of array a.
// A negative result indicates an unknown length.
func ( *Array) () int64 { return .len }

// Elem returns element type of array a.
func ( *Array) () Type { return .elem }

func ( *Array) () Type { return  }
func ( *Array) () string   { return TypeString(, nil) }