mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 18:01:07 +01:00
Update prelude files to increase destroy dependencies (#5848)
This is in anticipation of having `class` depending on the `Destroy` interface, in order to automatically generate implementations of it. I'm doing some sorting of imports in the prelude too, which I hope will be uncontroversial; clang-format would do similar in C++...
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/bool.carbon
|
||||
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/destroy.carbon
|
||||
|
||||
// --- min_prelude/parts/optional.carbon
|
||||
|
||||
package Core library "prelude/parts/optional";
|
||||
|
||||
import library "prelude/parts/bool";
|
||||
import library "prelude/parts/destroy";
|
||||
|
||||
class Optional(T:! type) {
|
||||
fn None() -> Self {
|
||||
|
||||
Reference in New Issue
Block a user