mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 00:06:41 +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
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
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/bool.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/char.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/copy.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/float.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/int.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/string.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/uint.carbon
|
|
// EXTRA-ARGS: --custom-core --exclude-dump-file-prefix=min_prelude/
|
|
|
|
// --- min_prelude/primitives.carbon
|
|
|
|
// A minimal prelude for testing with primitive types.
|
|
package Core library "prelude";
|
|
|
|
export import library "prelude/parts/array";
|
|
export import library "prelude/parts/bool";
|
|
export import library "prelude/parts/char";
|
|
export import library "prelude/parts/copy";
|
|
export import library "prelude/parts/float";
|
|
export import library "prelude/parts/int";
|
|
export import library "prelude/parts/string";
|
|
export import library "prelude/parts/uint";
|