| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717 |
- // 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/convert.carbon
- //
- // AUTOUPDATE
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/facet/period_self.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/facet/period_self.carbon
- // --- period_self_param.carbon
- library "[[@TEST_NAME]]";
- //@dump-sem-ir-begin
- interface I(T:! type) {
- let I1:! type;
- }
- fn F(T:! I(.Self) where .I1 = ()) -> T.I1 {
- return ();
- }
- fn G(T:! I(.Self as type) where .I1 = ()) -> T.I1 {
- return ();
- }
- //@dump-sem-ir-end
- // --- underscore_identifier_name.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- let I1:! type;
- }
- // Underscore as the identifier name produces a different parse tree for the
- // binding pattern.
- fn G(_:! I(.Self) where .I1 = ()) {}
- // --- fail_period_self_as_type.carbon
- library "[[@TEST_NAME]]";
- // TODO: We should diagnose this use of `.Self` directly rather than later when
- // it is converted to `type`.
- interface I(T:! .Self) {
- // CHECK:STDERR: fail_period_self_as_type.carbon:[[@LINE+7]]:13: error: cannot implicitly convert non-type value of type `.Self` to `type` [ConversionFailureNonTypeToFacet]
- // CHECK:STDERR: fn G() -> T;
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_period_self_as_type.carbon:[[@LINE+4]]:13: note: type `.Self` does not implement interface `Core.ImplicitAs(type)` [MissingImplInMemberAccessInContext]
- // CHECK:STDERR: fn G() -> T;
- // CHECK:STDERR: ^
- // CHECK:STDERR:
- fn G() -> T;
- }
- // --- convert_period_self_to_full_facet_value.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {}
- fn F(U:! I(.Self)) {
- U as I(U);
- (U as type) as I(U);
- }
- // --- convert_period_self_to_full_facet_value_with_assoc_constant.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- let X:! type;
- }
- fn F(U:! I(.Self) where .X = .Self) {
- U as (I(U) where .X = U);
- (U as type) as (I(U) where .X = U);
- }
- // --- fail_todo_return_of_type_period_self.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- fn G() -> T*;
- }
- interface J(T:! type) {
- fn J1() -> T*;
- }
- fn F2[U:! I(.Self)](unused T: U*) {}
- fn F(U:! I(.Self)) {
- // Caller sees the returned `.Self` type from `F()` as the full `U`.
- // CHECK:STDERR: fail_todo_return_of_type_period_self.carbon:[[@LINE+4]]:3: error: member name `G` not found [MemberNameNotFound]
- // CHECK:STDERR: U.G()->G()->G();
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR:
- U.G()->G()->G();
- // Conversion to `type` retains access to all of `U`.
- // CHECK:STDERR: fail_todo_return_of_type_period_self.carbon:[[@LINE+4]]:3: error: member name `G` not found [MemberNameNotFound]
- // CHECK:STDERR: (U as type).G()->G()->G();
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- (U as type).G()->G()->G();
- // Using the returned `.Self` as a facet value works, not just member lookup
- // on its facet type.
- // CHECK:STDERR: fail_todo_return_of_type_period_self.carbon:[[@LINE+4]]:6: error: member name `G` not found [MemberNameNotFound]
- // CHECK:STDERR: F2(U.G()->G()->G());
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR:
- F2(U.G()->G()->G());
- }
- // --- fail_todo_return_of_type_period_self_extends_interface.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- fn I1() -> T*;
- }
- interface J(T:! type) {
- fn J1() -> T*;
- }
- fn F2[U:! I(.Self) & J(.Self)](unused T: U*) {}
- fn F(U:! I(.Self) & J(.Self)) {
- // TODO: The returned value of `I1` and `J1` has type `U` which has access to
- // the methods of `I` and `J`.
- // CHECK:STDERR: fail_todo_return_of_type_period_self_extends_interface.carbon:[[@LINE+4]]:3: error: member name `J1` not found [MemberNameNotFound]
- // CHECK:STDERR: U.I1()->J1()->I1()->J1()->I1()->J1();
- // CHECK:STDERR: ^~~~~~~~~~
- // CHECK:STDERR:
- U.I1()->J1()->I1()->J1()->I1()->J1();
- // CHECK:STDERR: fail_todo_return_of_type_period_self_extends_interface.carbon:[[@LINE+4]]:3: error: member name `J1` not found [MemberNameNotFound]
- // CHECK:STDERR: (U as type).I1()->J1()->I1()->J1()->I1()->J1();
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- (U as type).I1()->J1()->I1()->J1()->I1()->J1();
- // TODO: Using the returned value of type `U` as a facet value works.
- // CHECK:STDERR: fail_todo_return_of_type_period_self_extends_interface.carbon:[[@LINE+4]]:6: error: member name `J1` not found [MemberNameNotFound]
- // CHECK:STDERR: F2(U.I1()->J1()->I1()->J1()->I1()->J1());
- // CHECK:STDERR: ^~~~~~~~~~
- // CHECK:STDERR:
- F2(U.I1()->J1()->I1()->J1()->I1()->J1());
- }
- // --- fail_todo_return_of_period_self_impls_interface.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- fn I1() -> T;
- }
- interface J(T:! type) {
- fn J1() -> T;
- }
- fn G(U:! I(.Self) where .Self impls J(.Self)) {
- // Compound member lookup through a non-type value is possible for methods
- // which take a `self` parameter. But it's not possible for methods without
- // `self`. For those you need to go directly throug the type.
- // See: https://github.com/carbon-language/carbon-lang/issues/6025
- // TODO: This step should work.
- //
- // CHECK:STDERR: fail_todo_return_of_period_self_impls_interface.carbon:[[@LINE+7]]:14: error: cannot implicitly convert expression of type `.Self` to `U` [ConversionFailure]
- // CHECK:STDERR: let u: U = U.I1();
- // CHECK:STDERR: ^~~~~~
- // CHECK:STDERR: fail_todo_return_of_period_self_impls_interface.carbon:[[@LINE+4]]:14: note: type `.Self` does not implement interface `Core.ImplicitAs(U)` [MissingImplInMemberAccessInContext]
- // CHECK:STDERR: let u: U = U.I1();
- // CHECK:STDERR: ^~~~~~
- // CHECK:STDERR:
- let u: U = U.I1();
- // `u` is a non-type value. Can call methods with `self` through compound
- // member lookup, but can't call methods without `self`. See the
- // `compound_access_through_call_with_self_param.carbon` test for the former.
- //
- // CHECK:STDERR: fail_todo_return_of_period_self_impls_interface.carbon:[[@LINE+4]]:6: error: type `<type of J>` does not support qualified expressions [QualifiedExprUnsupported]
- // CHECK:STDERR: u.(J.J1)();
- // CHECK:STDERR: ^~~~
- // CHECK:STDERR:
- u.(J.J1)();
- // This is the same as the above, since U.I1() returns a non-type value of
- // type `U`.
- //
- // CHECK:STDERR: fail_todo_return_of_period_self_impls_interface.carbon:[[@LINE+4]]:11: error: type `<type of J>` does not support qualified expressions [QualifiedExprUnsupported]
- // CHECK:STDERR: U.I1().(J.J1)();
- // CHECK:STDERR: ^~~~
- // CHECK:STDERR:
- U.I1().(J.J1)();
- }
- // --- fail_todo_return_of_type_period_self_has_type_u.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- fn G() -> T;
- }
- fn F(U:! I(.Self)) {
- // CHECK:STDERR: fail_todo_return_of_type_period_self_has_type_u.carbon:[[@LINE+7]]:21: error: cannot implicitly convert expression of type `.Self` to `U` [ConversionFailure]
- // CHECK:STDERR: let unused a: U = U.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR: fail_todo_return_of_type_period_self_has_type_u.carbon:[[@LINE+4]]:21: note: type `.Self` does not implement interface `Core.ImplicitAs(U)` [MissingImplInMemberAccessInContext]
- // CHECK:STDERR: let unused a: U = U.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR:
- let unused a: U = U.G();
- }
- // --- return_of_type_period_self_assoc_const_has_type_u.carbon
- library "[[@TEST_NAME]]";
- interface I {
- let X:! type;
- fn G() -> X;
- }
- fn F(U:! Core.Destroy & I where .X = .Self) {
- let unused a: U = U.G();
- }
- // --- fail_todo_nested_period_self.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- let A:! type;
- let B:! type;
- fn G() -> T;
- }
- // Both `.Self` refer to `T`. The first because it's the interface for the
- // binding. The second because it refers to the top level facet type which is
- // constraining the binding.
- fn F(T:! I(.Self) where .A = ((I(.Self) where .B = {}) where .A = {}) and .B = {}, U:! T.A) {
- // T.G() has type T.
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+7]]:21: error: cannot implicitly convert expression of type `.Self` to `T` [ConversionFailure]
- // CHECK:STDERR: let unused t: T = T.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+4]]:21: note: type `.Self` does not implement interface `Core.ImplicitAs(T)` [MissingImplInMemberAccessInContext]
- // CHECK:STDERR: let unused t: T = T.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR:
- let unused t: T = T.G();
- // U.G() has type T.
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+7]]:21: error: cannot implicitly convert expression of type `.Self` to `T` [ConversionFailure]
- // CHECK:STDERR: let unused u: T = U.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+4]]:21: note: type `.Self` does not implement interface `Core.ImplicitAs(T)` [MissingImplInMemberAccessInContext]
- // CHECK:STDERR: let unused u: T = U.G();
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR:
- let unused u: T = U.G();
- // Shows both `I(.Self)` are `I(T)`.
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+4]]:9: error: found cycle in facet type constraint for `.(I(T).A)` [FacetTypeConstraintCycle]
- // CHECK:STDERR: T as (I(T) where .A = (I(T) where .A = {} and .B = {}));
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- T as (I(T) where .A = (I(T) where .A = {} and .B = {}));
- // CHECK:STDERR: fail_todo_nested_period_self.carbon:[[@LINE+4]]:3: error: cannot convert type `U` that implements `I(.Self) where .(I(.Self).B) = {} and .(I(.Self).A) = {}` into type implementing `I(T) where .(I(T).A) = {} and .(I(T).B) = {}` [ConversionFailureFacetToFacet]
- // CHECK:STDERR: U as (I(T) where .A = {} and .B = {});
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- U as (I(T) where .A = {} and .B = {});
- }
- // --- todo_fail_nested_period_self_ambiguous.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! type) {
- let A:! type;
- }
- // TODO: This should be an error: The third `.Self` becomes is not able to be
- // bound to anything unambiguous here, as it could refer to `T` or to something
- // later being constrained by `T.A`.
- fn F(unused T:! I(.Self) where .A = (I(.Self) where .A = I(.Self))) {}
- // --- period_self_parameter_sees_lhs_of_where_expr.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! Core.Destroy) {}
- // The `.Self` can see the LHS of the `where` to know `U` impls Core.Destroy.
- fn F(unused U:! Core.Destroy where .Self impls I(.Self)) {}
- // --- fail_todo_period_self_parameter_constraint_satisfied_with_type_and.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! Core.Destroy) {}
- // TODO: Implied constraints that `.Self` impls `Core.Destroy` are satisfied by
- // the `&` expression.
- //
- // CHECK:STDERR: fail_todo_period_self_parameter_constraint_satisfied_with_type_and.carbon:[[@LINE+7]]:32: error: cannot convert type `.Self` that implements `type` into type implementing `Core.Destroy` [ConversionFailureFacetToFacet]
- // CHECK:STDERR: fn F(unused U:! Core.Destroy & I(.Self)) {}
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR: fail_todo_period_self_parameter_constraint_satisfied_with_type_and.carbon:[[@LINE-8]]:13: note: initializing generic parameter `T` declared here [InitializingGenericParam]
- // CHECK:STDERR: interface I(T:! Core.Destroy) {}
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F(unused U:! Core.Destroy & I(.Self)) {}
- // --- compound_lookup_on_returned_period_self_parameter.carbon
- library "[[@TEST_NAME]]";
- interface I(T:! Core.Destroy) {
- fn G[self: Self]() -> T;
- }
- fn F[U:! Core.Destroy where .Self impls I(.Self)](u: U) {
- // This tests that both `I.G` is accessible and that `Destroy` is preserved;
- // we'd get an error for missing Destroy otherwise since G() returns an
- // initializing expression.
- u.(I(U).G)().(I(U).G)().(I(U).G)();
- }
- // --- unambiguous_period_self.carbon
- library "[[@TEST_NAME]]";
- interface Z(T:! type) {}
- interface Y(T:! type) {
- let Y1:! type;
- let Y2:! type;
- }
- interface X(T:! type) {}
- class P;
- class Q(T:! type);
- class R(T:! type);
- fn A(unused T:! Z(.Self) where .Self impls (Y(.Self) where .Self impls X(.Self))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^T as Z(T) & Y(T)
- // ^ T as Z(T) & Y(T)
- fn B(unused T:! Z(.Self) where .Self impls (Y(.Self) where Q(.Self) impls X(.Self))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^T as Z(T) & Y(T)
- // ^ T as Z(T) & Y(T)
- fn C(unused T:! Z(.Self) where .Self impls (Y(.Self) where .Y1 = .Self)) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^T as Z(T) & Y(T)
- // ^ T as Z(T) & Y(T)
- // This introduces a different meaning of `.Self`, but we allow it here.
- fn D(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Self impls X(P))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^R(T as Z(T)) as Y(T as Z(T))
- // This introduces a different meaning of `.Self`, but we allow it here.
- fn E(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Y1 = .Y2)) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^R(T as Z(T)) as Y(T as Z(T))
- // ^R(T as Z(T)) as Y(T as Z(T))
- // Member designators have an implicit `.Self` which is always allowed. It binds
- // to the innermost facet value rather than being ambiguous.
- fn F(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Self impls X(.Y1))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^R(T as Z(T)) as Y(T as Z(T))
- // ^Implicit: R(T as Z(T)) as Y(T as Z(T))
- // --- fail_type_impls_ambiguous_period_self_argument.carbon
- library "[[@TEST_NAME]]";
- interface Z(T:! type) {}
- interface Y(T:! type) {}
- interface X(T:! type) {}
- interface W {}
- class P;
- class Q(T:! type);
- class R(T:! type);
- // CHECK:STDERR: fail_type_impls_ambiguous_period_self_argument.carbon:[[@LINE+4]]:71: error: `.Self` is ambiguous after nested `where` in `<type> impls ...` clause. [AmbiguousPeriodSelf]
- // CHECK:STDERR: fn A(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where P impls X(.Self))) {}
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR:
- fn A(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where P impls X(.Self))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^ERROR: R(T as Z(T)) as Y(T as Z(T))
- // --- fail_ambiguous_period_self_argument_impls.carbon
- library "[[@TEST_NAME]]";
- interface Z(T:! type) {}
- interface Y(T:! type) {}
- interface X {}
- class Q(T:! type);
- class R(T:! type);
- // CHECK:STDERR: fail_ambiguous_period_self_argument_impls.carbon:[[@LINE+4]]:63: error: `.Self` is ambiguous after nested `where` in `<type> impls ...` clause. [AmbiguousPeriodSelf]
- // CHECK:STDERR: fn B(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where Q(.Self) impls X)) {}
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR:
- fn B(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where Q(.Self) impls X)) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^ERROR: R(T as Z(T)) as Y(T as Z(T))
- // --- fail_period_self_impls_ambiguous_period_self_argument.carbon
- library "[[@TEST_NAME]]";
- interface Z(T:! type) {}
- interface Y(T:! type) {}
- interface X(T:! type) {}
- class R(T:! type);
- // CHECK:STDERR: fail_period_self_impls_ambiguous_period_self_argument.carbon:[[@LINE+4]]:75: error: `.Self` is ambiguous after nested `where` in `<type> impls ...` clause. [AmbiguousPeriodSelf]
- // CHECK:STDERR: fn C(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Self impls X(.Self))) {}
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR:
- fn C(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Self impls X(.Self))) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^R(T as Z(T)) as Y(T as Z(T))
- // ^ERROR: R(T as Z(T)) as Y(T as Z(T))
- // --- fail_rewrite_rhs_ambiguous_period_self.carbon
- library "[[@TEST_NAME]]";
- interface Z(T:! type) {}
- interface Y(T:! type) {
- let Y1:! type;
- }
- class R(T:! type);
- // CHECK:STDERR: fail_rewrite_rhs_ambiguous_period_self.carbon:[[@LINE+4]]:69: error: `.Self` is ambiguous after nested `where` in `<type> impls ...` clause. [AmbiguousPeriodSelf]
- // CHECK:STDERR: fn D(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Y1 = .Self)) {}
- // CHECK:STDERR: ^~~~~
- // CHECK:STDERR:
- fn D(unused T:! Z(.Self) where R(.Self) impls (Y(.Self) where .Y1 = .Self)) {}
- // ^T as type ^T as Z(T) ^T as Z(T) ^R(T as Z(T)) as Y(T as Z(T))
- // ^ERROR: R(T as Z(T)) as Y(T as Z(T))
- // --- impl_as_rewrite_with_period_self.carbon
- library "[[@TEST_NAME]]";
- interface Z {
- let Z1:! type;
- }
- class C;
- impl C as Z where .Z1 = .Self {}
- fn F() {
- C as (Z where .Z1 = C);
- }
- // --- impl_as_impls_with_period_self.carbon
- library "[[@TEST_NAME]]";
- interface Z {
- let Z1:! type;
- }
- interface Y {}
- class C;
- impl C as Z where .Z1 = .Self {}
- impl C as Y {}
- fn F() {
- C as (Z where .Z1 impls Y);
- }
- // CHECK:STDOUT: --- period_self_param.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
- // CHECK:STDOUT: %.Self.c39: %type = symbolic_binding .Self [symbolic_self]
- // CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
- // CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %I.type.609: type = generic_interface_type @I [concrete]
- // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
- // CHECK:STDOUT: %I.generic: %I.type.609 = struct_value () [concrete]
- // CHECK:STDOUT: %I.type.1ab: type = facet_type <@I, @I(%T.67d)> [symbolic]
- // CHECK:STDOUT: %Self.fdb: %I.type.1ab = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %I.assoc_type.76c: type = assoc_entity_type @I, @I(%T.67d) [symbolic]
- // CHECK:STDOUT: %assoc0.99e: %I.assoc_type.76c = assoc_entity element0, @I.WithSelf.%I1 [symbolic]
- // CHECK:STDOUT: %.Self.as_type.246: type = facet_access_type %.Self.c39 [symbolic_self]
- // CHECK:STDOUT: %I.type.6e7: type = facet_type <@I, @I(%.Self.as_type.246)> [symbolic_self]
- // CHECK:STDOUT: %.Self.534: %I.type.6e7 = symbolic_binding .Self [symbolic_self]
- // CHECK:STDOUT: %Self.c6b: %I.type.6e7 = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %I.assoc_type.24b: type = assoc_entity_type @I, @I(%.Self.as_type.246) [symbolic_self]
- // CHECK:STDOUT: %assoc0.0ba: %I.assoc_type.24b = assoc_entity element0, @I.WithSelf.%I1 [symbolic_self]
- // CHECK:STDOUT: %.Self.as_type.089: type = facet_access_type %.Self.534 [symbolic_self]
- // CHECK:STDOUT: %I.lookup_impl_witness.42f: <witness> = lookup_impl_witness %.Self.534, @I, @I(%.Self.as_type.246) [symbolic_self]
- // CHECK:STDOUT: %impl.elem0: type = impl_witness_access %I.lookup_impl_witness.42f, element0 [symbolic_self]
- // CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
- // CHECK:STDOUT: %I_where.type: type = facet_type <@I, @I(%.Self.as_type.246) where %impl.elem0 = %empty_tuple.type> [symbolic_self]
- // CHECK:STDOUT: %pattern_type.0d7: type = pattern_type %I_where.type [symbolic_self]
- // CHECK:STDOUT: %T.279: %I_where.type = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.279 [symbolic]
- // CHECK:STDOUT: %facet_value: %type = facet_value %T.as_type, () [symbolic]
- // CHECK:STDOUT: %I.lookup_impl_witness.baf: <witness> = lookup_impl_witness %T.279, @I, @I(%T.as_type) [symbolic]
- // CHECK:STDOUT: %I.facet: %I.type.6e7 = facet_value %T.as_type, (%I.lookup_impl_witness.baf) [symbolic]
- // CHECK:STDOUT: %.262: Core.Form = init_form %empty_tuple.type [concrete]
- // CHECK:STDOUT: %pattern_type.cb1: type = pattern_type %empty_tuple.type [concrete]
- // CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
- // CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
- // CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
- // CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: %I.decl: %I.type.609 = interface_decl @I [concrete = constants.%I.generic] {
- // CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %.loc4_17.1: type = splice_block %.loc4_17.2 [concrete = type] {
- // CHECK:STDOUT: <elided>
- // CHECK:STDOUT: %.loc4_17.2: type = type_literal type [concrete = type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %T.loc4_14.2: type = symbolic_binding T, 0 [symbolic = %T.loc4_14.1 (constants.%T.67d)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
- // CHECK:STDOUT: %T.patt: %pattern_type.0d7 = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.cb1 = out_param_pattern [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.cb1 = return_slot_pattern %return.param_patt, %impl.elem0.loc8_39 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %T.ref: %I_where.type = name_ref T, %T.loc8_7.2 [symbolic = %T.loc8_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %T.as_type.loc8_39.2: type = facet_access_type %T.ref [symbolic = %T.as_type.loc8_39.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %.loc8_39.1: type = converted %T.ref, %T.as_type.loc8_39.2 [symbolic = %T.as_type.loc8_39.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %.loc8_39.2: %I.assoc_type.24b = specific_constant @I1.%assoc0, @I.WithSelf(constants.%.Self.as_type.246, constants.%T.279) [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %I1.ref.loc8_39: %I.assoc_type.24b = name_ref I1, %.loc8_39.2 [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %facet_value.loc8_39.2: %type = facet_value constants.%T.as_type, () [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %.loc8_39.3: %type = converted constants.%T.as_type, %facet_value.loc8_39.2 [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %T.as_type.loc8_39.3: type = facet_access_type constants.%T.279 [symbolic = %T.as_type.loc8_39.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %facet_value.loc8_39.3: %type = facet_value %T.as_type.loc8_39.3, () [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %.loc8_39.4: %type = converted constants.%T.279, %facet_value.loc8_39.3 [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %T.as_type.loc8_39.4: type = facet_access_type constants.%T.279 [symbolic = %T.as_type.loc8_39.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %facet_value.loc8_39.4: %type = facet_value %T.as_type.loc8_39.4, () [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %.loc8_39.5: %type = converted constants.%T.279, %facet_value.loc8_39.4 [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT: %impl.elem0.loc8_39: type = impl_witness_access constants.%I.lookup_impl_witness.baf, element0 [concrete = constants.%empty_tuple.type]
- // CHECK:STDOUT: %.loc8_39.6: Core.Form = init_form %impl.elem0.loc8_39 [concrete = constants.%.262]
- // CHECK:STDOUT: %.loc8_19.1: type = splice_block %.loc8_19.2 [symbolic_self = constants.%I_where.type] {
- // CHECK:STDOUT: <elided>
- // CHECK:STDOUT: %I.ref: %I.type.609 = name_ref I, file.%I.decl [concrete = constants.%I.generic]
- // CHECK:STDOUT: %.Self.ref.loc8_12: %type = name_ref .Self, %.Self.1 [symbolic_self = constants.%.Self.c39]
- // CHECK:STDOUT: %.Self.as_type.loc8_17: type = facet_access_type %.Self.ref.loc8_12 [symbolic_self = constants.%.Self.as_type.246]
- // CHECK:STDOUT: %.loc8_17: type = converted %.Self.ref.loc8_12, %.Self.as_type.loc8_17 [symbolic_self = constants.%.Self.as_type.246]
- // CHECK:STDOUT: %I.type: type = facet_type <@I, @I(constants.%.Self.as_type.246)> [symbolic_self = constants.%I.type.6e7]
- // CHECK:STDOUT: <elided>
- // CHECK:STDOUT: %.Self.ref.loc8_25: %I.type.6e7 = name_ref .Self, %.Self.2 [symbolic_self = constants.%.Self.534]
- // CHECK:STDOUT: %.Self.as_type.loc8_25: type = facet_access_type %.Self.ref.loc8_25 [symbolic_self = constants.%.Self.as_type.089]
- // CHECK:STDOUT: %.loc8_25.1: type = converted %.Self.ref.loc8_25, %.Self.as_type.loc8_25 [symbolic_self = constants.%.Self.as_type.089]
- // CHECK:STDOUT: %.loc8_25.2: %I.assoc_type.24b = specific_constant @I1.%assoc0, @I.WithSelf(constants.%.Self.as_type.246, constants.%.Self.534) [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %I1.ref.loc8_25: %I.assoc_type.24b = name_ref I1, %.loc8_25.2 [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %impl.elem0.loc8_25: type = impl_witness_access constants.%I.lookup_impl_witness.42f, element0 [symbolic_self = constants.%impl.elem0]
- // CHECK:STDOUT: %.loc8_32.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc8_32.2: type = converted %.loc8_32.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
- // CHECK:STDOUT: %.loc8_19.2: type = where_expr [symbolic_self = constants.%I_where.type] {
- // CHECK:STDOUT: requirement_base_facet_type %I.type
- // CHECK:STDOUT: requirement_rewrite %impl.elem0.loc8_25, %.loc8_32.2
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %T.loc8_7.2: %I_where.type = symbolic_binding T, 0 [symbolic = %T.loc8_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %return.param: ref %empty_tuple.type = out_param call_param0
- // CHECK:STDOUT: %return: ref %empty_tuple.type = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {
- // CHECK:STDOUT: %T.patt: %pattern_type.0d7 = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.cb1 = out_param_pattern [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.cb1 = return_slot_pattern %return.param_patt, %impl.elem0.loc12_47 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %T.ref: %I_where.type = name_ref T, %T.loc12_7.2 [symbolic = %T.loc12_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %T.as_type.loc12_47.2: type = facet_access_type %T.ref [symbolic = %T.as_type.loc12_47.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %.loc12_47.1: type = converted %T.ref, %T.as_type.loc12_47.2 [symbolic = %T.as_type.loc12_47.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %.loc12_47.2: %I.assoc_type.24b = specific_constant @I1.%assoc0, @I.WithSelf(constants.%.Self.as_type.246, constants.%T.279) [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %I1.ref.loc12_47: %I.assoc_type.24b = name_ref I1, %.loc12_47.2 [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %T.as_type.loc12_47.3: type = facet_access_type constants.%T.279 [symbolic = %T.as_type.loc12_47.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %facet_value.loc12_47.2: %type = facet_value %T.as_type.loc12_47.3, () [symbolic = %facet_value.loc12_47.1 (constants.%facet_value)]
- // CHECK:STDOUT: %.loc12_47.3: %type = converted constants.%T.279, %facet_value.loc12_47.2 [symbolic = %facet_value.loc12_47.1 (constants.%facet_value)]
- // CHECK:STDOUT: %impl.elem0.loc12_47: type = impl_witness_access constants.%I.lookup_impl_witness.baf, element0 [concrete = constants.%empty_tuple.type]
- // CHECK:STDOUT: %.loc12_47.4: Core.Form = init_form %impl.elem0.loc12_47 [concrete = constants.%.262]
- // CHECK:STDOUT: %.loc12_27.1: type = splice_block %.loc12_27.2 [symbolic_self = constants.%I_where.type] {
- // CHECK:STDOUT: <elided>
- // CHECK:STDOUT: %I.ref: %I.type.609 = name_ref I, file.%I.decl [concrete = constants.%I.generic]
- // CHECK:STDOUT: %.Self.ref.loc12_12: %type = name_ref .Self, %.Self.1 [symbolic_self = constants.%.Self.c39]
- // CHECK:STDOUT: %.loc12_21: type = type_literal type [concrete = type]
- // CHECK:STDOUT: %.Self.as_type.loc12_18: type = facet_access_type %.Self.ref.loc12_12 [symbolic_self = constants.%.Self.as_type.246]
- // CHECK:STDOUT: %.loc12_18: type = converted %.Self.ref.loc12_12, %.Self.as_type.loc12_18 [symbolic_self = constants.%.Self.as_type.246]
- // CHECK:STDOUT: %I.type: type = facet_type <@I, @I(constants.%.Self.as_type.246)> [symbolic_self = constants.%I.type.6e7]
- // CHECK:STDOUT: <elided>
- // CHECK:STDOUT: %.Self.ref.loc12_33: %I.type.6e7 = name_ref .Self, %.Self.2 [symbolic_self = constants.%.Self.534]
- // CHECK:STDOUT: %.Self.as_type.loc12_33: type = facet_access_type %.Self.ref.loc12_33 [symbolic_self = constants.%.Self.as_type.089]
- // CHECK:STDOUT: %.loc12_33.1: type = converted %.Self.ref.loc12_33, %.Self.as_type.loc12_33 [symbolic_self = constants.%.Self.as_type.089]
- // CHECK:STDOUT: %.loc12_33.2: %I.assoc_type.24b = specific_constant @I1.%assoc0, @I.WithSelf(constants.%.Self.as_type.246, constants.%.Self.534) [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %I1.ref.loc12_33: %I.assoc_type.24b = name_ref I1, %.loc12_33.2 [symbolic_self = constants.%assoc0.0ba]
- // CHECK:STDOUT: %impl.elem0.loc12_33: type = impl_witness_access constants.%I.lookup_impl_witness.42f, element0 [symbolic_self = constants.%impl.elem0]
- // CHECK:STDOUT: %.loc12_40.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc12_40.2: type = converted %.loc12_40.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
- // CHECK:STDOUT: %.loc12_27.2: type = where_expr [symbolic_self = constants.%I_where.type] {
- // CHECK:STDOUT: requirement_base_facet_type %I.type
- // CHECK:STDOUT: requirement_rewrite %impl.elem0.loc12_33, %.loc12_40.2
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %T.loc12_7.2: %I_where.type = symbolic_binding T, 0 [symbolic = %T.loc12_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %return.param: ref %empty_tuple.type = out_param call_param0
- // CHECK:STDOUT: %return: ref %empty_tuple.type = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @I(%T.loc4_14.2: type) {
- // CHECK:STDOUT: %T.loc4_14.1: type = symbolic_binding T, 0 [symbolic = %T.loc4_14.1 (constants.%T.67d)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc4_14.1)> [symbolic = %I.type (constants.%I.type.1ab)]
- // CHECK:STDOUT: %Self.loc4_23.2: @I.%I.type (%I.type.1ab) = symbolic_binding Self, 1 [symbolic = %Self.loc4_23.2 (constants.%Self.fdb)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.loc4_23.1: @I.%I.type (%I.type.1ab) = symbolic_binding Self, 1 [symbolic = %Self.loc4_23.2 (constants.%Self.fdb)]
- // CHECK:STDOUT: %I.WithSelf.decl = interface_with_self_decl @I [concrete]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !with Self:
- // CHECK:STDOUT: %I1: type = assoc_const_decl @I1 [concrete] {
- // CHECK:STDOUT: %assoc0: @I.WithSelf.%I.assoc_type (%I.assoc_type.76c) = assoc_entity element0, @I.WithSelf.%I1 [symbolic = @I.WithSelf.%assoc0 (constants.%assoc0.99e)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.loc4_23.1
- // CHECK:STDOUT: .I1 = @I1.%assoc0
- // CHECK:STDOUT: witness = (@I.WithSelf.%I1)
- // CHECK:STDOUT:
- // CHECK:STDOUT: !requires:
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @F(%T.loc8_7.2: %I_where.type) {
- // CHECK:STDOUT: %T.loc8_7.1: %I_where.type = symbolic_binding T, 0 [symbolic = %T.loc8_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %T.as_type.loc8_39.1: type = facet_access_type %T.loc8_7.1 [symbolic = %T.as_type.loc8_39.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %facet_value.loc8_39.1: %type = facet_value %T.as_type.loc8_39.1, () [symbolic = %facet_value.loc8_39.1 (constants.%facet_value)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn() -> out %return.param: %empty_tuple.type {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %.loc9_11.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc9_11.2: init %empty_tuple.type = tuple_init () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc9_12: init %empty_tuple.type = converted %.loc9_11.1, %.loc9_11.2 [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: return %.loc9_12
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @G(%T.loc12_7.2: %I_where.type) {
- // CHECK:STDOUT: %T.loc12_7.1: %I_where.type = symbolic_binding T, 0 [symbolic = %T.loc12_7.1 (constants.%T.279)]
- // CHECK:STDOUT: %T.as_type.loc12_47.1: type = facet_access_type %T.loc12_7.1 [symbolic = %T.as_type.loc12_47.1 (constants.%T.as_type)]
- // CHECK:STDOUT: %facet_value.loc12_47.1: %type = facet_value %T.as_type.loc12_47.1, () [symbolic = %facet_value.loc12_47.1 (constants.%facet_value)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn() -> out %return.param: %empty_tuple.type {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %.loc13_11.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc13_11.2: init %empty_tuple.type = tuple_init () [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: %.loc13_12: init %empty_tuple.type = converted %.loc13_11.1, %.loc13_11.2 [concrete = constants.%empty_tuple]
- // CHECK:STDOUT: return %.loc13_12
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I(constants.%T.67d) {
- // CHECK:STDOUT: %T.loc4_14.1 => constants.%T.67d
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.WithSelf(constants.%T.67d, constants.%Self.fdb) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I(constants.%.Self.as_type.246) {
- // CHECK:STDOUT: %T.loc4_14.1 => constants.%.Self.as_type.246
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %I.type => constants.%I.type.6e7
- // CHECK:STDOUT: %Self.loc4_23.2 => constants.%Self.c6b
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.WithSelf(constants.%.Self.as_type.246, constants.%Self.fdb) {
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T => constants.%.Self.as_type.246
- // CHECK:STDOUT: %I.assoc_type => constants.%I.assoc_type.24b
- // CHECK:STDOUT: %assoc0 => constants.%assoc0.0ba
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.WithSelf(constants.%.Self.as_type.246, constants.%.Self.534) {
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T => constants.%.Self.as_type.246
- // CHECK:STDOUT: %I.assoc_type => constants.%I.assoc_type.24b
- // CHECK:STDOUT: %assoc0 => constants.%assoc0.0ba
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.WithSelf(constants.%.Self.as_type.246, constants.%T.279) {
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T => constants.%.Self.as_type.246
- // CHECK:STDOUT: %I.assoc_type => constants.%I.assoc_type.24b
- // CHECK:STDOUT: %assoc0 => constants.%assoc0.0ba
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I(constants.%T.as_type) {
- // CHECK:STDOUT: %T.loc4_14.1 => constants.%T.as_type
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.WithSelf(constants.%.Self.as_type.246, constants.%I.facet) {
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T => constants.%.Self.as_type.246
- // CHECK:STDOUT: %I.assoc_type => constants.%I.assoc_type.24b
- // CHECK:STDOUT: %assoc0 => constants.%assoc0.0ba
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @F(constants.%T.279) {
- // CHECK:STDOUT: %T.loc8_7.1 => constants.%T.279
- // CHECK:STDOUT: %T.as_type.loc8_39.1 => constants.%T.as_type
- // CHECK:STDOUT: %facet_value.loc8_39.1 => constants.%facet_value
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @G(constants.%T.279) {
- // CHECK:STDOUT: %T.loc12_7.1 => constants.%T.279
- // CHECK:STDOUT: %T.as_type.loc12_47.1 => constants.%T.as_type
- // CHECK:STDOUT: %facet_value.loc12_47.1 => constants.%facet_value
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
|