mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 18:48:12 +00:00
As described in proposal #4682, make `array(T, N)` be syntactic sugar for the type `Core.Array` defined in the standard library. This provides a home for impls that are specific to `Core.Array`. Assisted-by: Gemini and Claude via Antigravity
17 lines
693 B
Plaintext
17 lines
693 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/array.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/int.carbon
|
|
// EXTRA-ARGS: --custom-core --exclude-dump-file-prefix=min_prelude/
|
|
|
|
// --- min_prelude/array.carbon
|
|
|
|
// A minimal prelude for testing arrays. Also includes integer support since
|
|
// that's generally necessary when using arrays.
|
|
package Core library "prelude";
|
|
|
|
export import library "prelude/parts/array";
|
|
export import library "prelude/parts/int";
|