mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:01:05 +01:00
See [here](https://docs.google.com/document/d/1rWcueFwIfZox6GKVGxiUG4cBzjrZ6djXiIDGyJDtrE4/edit?tab=t.0) for the design doc. This also removes the default value of the `result_type_inst_id` parameter of `HandleAction`, moves it before the action in the parameter list, and documents it. This solves two problems: - The default made it easy to forget, leading to unnecessary `TypeOfInst` instructions. - When it was present, putting it after the fairly "bulky" action argument tended to make the callsite harder to read.
14 lines
500 B
Plaintext
14 lines
500 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
|
|
//
|
|
// EXTRA-ARGS: --custom-core --exclude-dump-file-prefix=min_prelude/
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/form.carbon
|
|
|
|
// --- min_prelude/form.carbon
|
|
|
|
// A minimal prelude for testing `Core.Form` usage.
|
|
package Core library "prelude";
|
|
|
|
export import library "prelude/parts/form";
|