| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387 |
- // 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/primitives.carbon
- // TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
- // EXTRA-ARGS: --dump-sem-ir-ranges=if-present
- //
- // AUTOUPDATE
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
- interface I { fn F(); }
- class NoF {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:3: error: missing implementation of F in impl of interface I [ImplMissingFunction]
- // CHECK:STDERR: impl as I {}
- // CHECK:STDERR: ^~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-6]]:15: note: associated function F declared here [AssociatedFunctionHere]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- impl as I {}
- }
- class FNotFunction {
- impl as I {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
- // CHECK:STDERR: class F;
- // CHECK:STDERR: ^~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-18]]:15: note: associated function F declared here [AssociatedFunctionHere]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- class F;
- }
- }
- fn PossiblyF();
- // TODO: Should this be permitted?
- class FAlias {
- impl as I {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:11: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
- // CHECK:STDERR: alias F = PossiblyF;
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-34]]:15: note: associated function F declared here [AssociatedFunctionHere]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- alias F = PossiblyF;
- }
- }
- class FExtraParam {
- impl as I {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 0 arguments passed to function expecting 1 argument [CallArgCountMismatch]
- // CHECK:STDERR: fn F(b: bool);
- // CHECK:STDERR: ^~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
- // CHECK:STDERR: fn F(b: bool);
- // CHECK:STDERR: ^~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-50]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- fn F(b: bool);
- }
- }
- class FExtraImplicitParam {
- impl as I {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: missing object argument in method call [MissingObjectInMethodCall]
- // CHECK:STDERR: fn F[self: Self]();
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToFunction]
- // CHECK:STDERR: fn F[self: Self]();
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-66]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- fn F[self: Self]();
- }
- }
- // TODO: Should this be permitted?
- class FExtraReturnType {
- impl as I {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `bool` [FunctionRedeclReturnTypeDiffers]
- // CHECK:STDERR: fn F() -> bool;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-80]]:15: note: previously declared with no return type [FunctionRedeclReturnTypePreviousNoReturn]
- // CHECK:STDERR: interface I { fn F(); }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR:
- fn F() -> bool;
- }
- }
- interface J { fn F[self: bool](b: bool) -> bool; }
- class FMissingParam {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 1 argument passed to function expecting 0 arguments [CallArgCountMismatch]
- // CHECK:STDERR: fn F[self: bool]() -> bool;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
- // CHECK:STDERR: fn F[self: bool]() -> bool;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-10]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F[self: bool]() -> bool;
- }
- }
- class FMissingImplicitParam {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: member name of type `<type of F>` in compound member access is not an instance member or an interface member [CompoundMemberAccessDoesNotUseBase]
- // CHECK:STDERR: fn F(b: bool) -> bool;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-23]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F(b: bool) -> bool;
- }
- }
- class FMissingReturnType {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+16]]:5: error: cannot implicitly convert expression of type `()` to `bool` [ConversionFailure]
- // CHECK:STDERR: fn F[self: bool](b: bool);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:5: note: type `()` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: fn F[self: bool](b: bool);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-39]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-43]]:32: error: cannot implicitly convert expression of type `bool` to `FDifferentParamType` [ConversionFailure]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-46]]:32: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentParamType)` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~
- fn F[self: bool](b: bool);
- }
- }
- class FDifferentParamType {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:22: note: initializing function parameter [InCallToFunctionParam]
- // CHECK:STDERR: fn F[self: bool](b: Self) -> bool;
- // CHECK:STDERR: ^~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-58]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-62]]:20: error: cannot implicitly convert expression of type `bool` to `FDifferentImplicitParamType` [ConversionFailure]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-65]]:20: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentImplicitParamType)` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~
- fn F[self: bool](b: Self) -> bool;
- }
- }
- class FDifferentImplicitParamType {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
- // CHECK:STDERR: fn F[self: Self](b: bool) -> bool;
- // CHECK:STDERR: ^~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-77]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F[self: Self](b: bool) -> bool;
- }
- }
- class FDifferentReturnType {
- impl as J {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: cannot implicitly convert expression of type `FDifferentReturnType` to `bool` [ConversionFailure]
- // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: type `FDifferentReturnType` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-93]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F[self: bool](b: bool) -> Self;
- }
- }
- interface SelfNested {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+6]]:8: error: cannot implicitly convert expression of type `SelfNestedBadParam` to `i32` [ConversionFailure]
- // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+3]]:8: note: type `SelfNestedBadParam` does not implement interface `Core.ImplicitAs(i32)` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
- }
- class SelfNestedBadParam {
- impl as SelfNested {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
- // CHECK:STDERR: fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-8]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
- }
- }
- class SelfNestedBadReturnType {
- impl as SelfNested {
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: cannot implicitly convert expression of type `array(SelfNestedBadParam, 4)` to `array(SelfNestedBadReturnType, 4)` [ConversionFailure]
- // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: type `array(SelfNestedBadParam, 4)` does not implement interface `Core.ImplicitAs(array(SelfNestedBadReturnType, 4))` [MissingImplInMemberAccessNote]
- // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-24]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
- // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
- }
- }
- // CHECK:STDOUT: --- fail_impl_bad_assoc_fn.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
- // CHECK:STDOUT: %Self.7ee: %I.type = bind_symbolic_name Self, 0 [symbolic]
- // CHECK:STDOUT: %I.F.type: type = fn_type @I.F [concrete]
- // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
- // CHECK:STDOUT: %I.F: %I.F.type = struct_value () [concrete]
- // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
- // CHECK:STDOUT: %assoc0.82e: %I.assoc_type = assoc_entity element0, @I.%I.F.decl [concrete]
- // CHECK:STDOUT: %NoF: type = class_type @NoF [concrete]
- // CHECK:STDOUT: %I.impl_witness.6bf: <witness> = impl_witness @NoF.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
- // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
- // CHECK:STDOUT: %FNotFunction: type = class_type @FNotFunction [concrete]
- // CHECK:STDOUT: %I.impl_witness.aac: <witness> = impl_witness @FNotFunction.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %F: type = class_type @F [concrete]
- // CHECK:STDOUT: %PossiblyF.type: type = fn_type @PossiblyF [concrete]
- // CHECK:STDOUT: %PossiblyF: %PossiblyF.type = struct_value () [concrete]
- // CHECK:STDOUT: %FAlias: type = class_type @FAlias [concrete]
- // CHECK:STDOUT: %I.impl_witness.bfe: <witness> = impl_witness @FAlias.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %FExtraParam: type = class_type @FExtraParam [concrete]
- // CHECK:STDOUT: %I.impl_witness.4a4: <witness> = impl_witness @FExtraParam.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
- // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
- // CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.edf38f.1: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.1 [concrete]
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.388f2d.1: %FExtraParam.as.I.impl.F.type.edf38f.1 = struct_value () [concrete]
- // CHECK:STDOUT: %I.facet.888: %I.type = facet_value %FExtraParam, (%I.impl_witness.4a4) [concrete]
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.edf38f.2: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.2 [concrete]
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.388f2d.2: %FExtraParam.as.I.impl.F.type.edf38f.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FExtraImplicitParam: type = class_type @FExtraImplicitParam [concrete]
- // CHECK:STDOUT: %I.impl_witness.c03: <witness> = impl_witness @FExtraImplicitParam.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %pattern_type.8ae: type = pattern_type %FExtraImplicitParam [concrete]
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.1 [concrete]
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.49ab47.1: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1 = struct_value () [concrete]
- // CHECK:STDOUT: %I.facet.242: %I.type = facet_value %FExtraImplicitParam, (%I.impl_witness.c03) [concrete]
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.2: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.2 [concrete]
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.49ab47.2: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FExtraReturnType: type = class_type @FExtraReturnType [concrete]
- // CHECK:STDOUT: %I.impl_witness.8ff: <witness> = impl_witness @FExtraReturnType.%I.impl_witness_table [concrete]
- // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F.type: type = fn_type @FExtraReturnType.as.I.impl.F [concrete]
- // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F: %FExtraReturnType.as.I.impl.F.type = struct_value () [concrete]
- // CHECK:STDOUT: %I.facet.d1c: %I.type = facet_value %FExtraReturnType, (%I.impl_witness.8ff) [concrete]
- // CHECK:STDOUT: %J.type: type = facet_type <@J> [concrete]
- // CHECK:STDOUT: %Self.bf6: %J.type = bind_symbolic_name Self, 0 [symbolic]
- // CHECK:STDOUT: %J.F.type: type = fn_type @J.F [concrete]
- // CHECK:STDOUT: %J.F: %J.F.type = struct_value () [concrete]
- // CHECK:STDOUT: %J.assoc_type: type = assoc_entity_type @J [concrete]
- // CHECK:STDOUT: %assoc0.922: %J.assoc_type = assoc_entity element0, @J.%J.F.decl [concrete]
- // CHECK:STDOUT: %FMissingParam: type = class_type @FMissingParam [concrete]
- // CHECK:STDOUT: %J.impl_witness.6a1: <witness> = impl_witness @FMissingParam.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.45f670.1: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.1 [concrete]
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.300f33.1: %FMissingParam.as.J.impl.F.type.45f670.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.b0a: %J.type = facet_value %FMissingParam, (%J.impl_witness.6a1) [concrete]
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.45f670.2: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.2 [concrete]
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.300f33.2: %FMissingParam.as.J.impl.F.type.45f670.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FMissingImplicitParam: type = class_type @FMissingImplicitParam [concrete]
- // CHECK:STDOUT: %J.impl_witness.5f7: <witness> = impl_witness @FMissingImplicitParam.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.1 [concrete]
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.f3d16f.1: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.2cb: %J.type = facet_value %FMissingImplicitParam, (%J.impl_witness.5f7) [concrete]
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.1eb171.2: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.2 [concrete]
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.f3d16f.2: %FMissingImplicitParam.as.J.impl.F.type.1eb171.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FMissingReturnType: type = class_type @FMissingReturnType [concrete]
- // CHECK:STDOUT: %J.impl_witness.901: <witness> = impl_witness @FMissingReturnType.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.1 [concrete]
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.405ae3.1: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.92c: %J.type = facet_value %FMissingReturnType, (%J.impl_witness.901) [concrete]
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.2c3eb9.2: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.2 [concrete]
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.405ae3.2: %FMissingReturnType.as.J.impl.F.type.2c3eb9.2 = struct_value () [concrete]
- // CHECK:STDOUT: %ImplicitAs.type.cc7: type = generic_interface_type @ImplicitAs [concrete]
- // CHECK:STDOUT: %ImplicitAs.generic: %ImplicitAs.type.cc7 = struct_value () [concrete]
- // CHECK:STDOUT: %FDifferentParamType: type = class_type @FDifferentParamType [concrete]
- // CHECK:STDOUT: %J.impl_witness.9c0: <witness> = impl_witness @FDifferentParamType.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %pattern_type.b90: type = pattern_type %FDifferentParamType [concrete]
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.30a936.1: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.1 [concrete]
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.0ea197.1: %FDifferentParamType.as.J.impl.F.type.30a936.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.bad: %J.type = facet_value %FDifferentParamType, (%J.impl_witness.9c0) [concrete]
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.30a936.2: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.2 [concrete]
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.0ea197.2: %FDifferentParamType.as.J.impl.F.type.30a936.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FDifferentImplicitParamType: type = class_type @FDifferentImplicitParamType [concrete]
- // CHECK:STDOUT: %J.impl_witness.5b4: <witness> = impl_witness @FDifferentImplicitParamType.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %pattern_type.9cc: type = pattern_type %FDifferentImplicitParamType [concrete]
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1 [concrete]
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.3caa22.1: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.923: %J.type = facet_value %FDifferentImplicitParamType, (%J.impl_witness.5b4) [concrete]
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.2: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2 [concrete]
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.3caa22.2: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.2 = struct_value () [concrete]
- // CHECK:STDOUT: %FDifferentReturnType: type = class_type @FDifferentReturnType [concrete]
- // CHECK:STDOUT: %J.impl_witness.bca: <witness> = impl_witness @FDifferentReturnType.%J.impl_witness_table [concrete]
- // CHECK:STDOUT: %pattern_type.8ee: type = pattern_type %FDifferentReturnType [concrete]
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.3243f4.1: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.1 [concrete]
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.e4a0b7.1: %FDifferentReturnType.as.J.impl.F.type.3243f4.1 = struct_value () [concrete]
- // CHECK:STDOUT: %J.facet.a25: %J.type = facet_value %FDifferentReturnType, (%J.impl_witness.bca) [concrete]
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.3243f4.2: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.2 [concrete]
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.e4a0b7.2: %FDifferentReturnType.as.J.impl.F.type.3243f4.2 = struct_value () [concrete]
- // CHECK:STDOUT: %SelfNested.type: type = facet_type <@SelfNested> [concrete]
- // CHECK:STDOUT: %Self.3de: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic]
- // CHECK:STDOUT: %Self.binding.as_type.9fa: type = symbolic_binding_type Self, 0, %Self.3de [symbolic]
- // CHECK:STDOUT: %ptr.7fb: type = ptr_type %Self.binding.as_type.9fa [symbolic]
- // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
- // CHECK:STDOUT: %Int.type: type = generic_class_type @Int [concrete]
- // CHECK:STDOUT: %Int.generic: %Int.type = struct_value () [concrete]
- // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
- // CHECK:STDOUT: %struct_type.x.y.a78: type = struct_type {.x: %Self.binding.as_type.9fa, .y: %i32} [symbolic]
- // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
- // CHECK:STDOUT: %tuple.type.bf8: type = tuple_type (%ptr.7fb, %struct_type.x.y.a78) [symbolic]
- // CHECK:STDOUT: %pattern_type.daf: type = pattern_type %tuple.type.bf8 [symbolic]
- // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete]
- // CHECK:STDOUT: %array_type.fe2: type = array_type %int_4, %Self.binding.as_type.9fa [symbolic]
- // CHECK:STDOUT: %pattern_type.285: type = pattern_type %array_type.fe2 [symbolic]
- // CHECK:STDOUT: %SelfNested.F.type: type = fn_type @SelfNested.F [concrete]
- // CHECK:STDOUT: %SelfNested.F: %SelfNested.F.type = struct_value () [concrete]
- // CHECK:STDOUT: %SelfNested.assoc_type: type = assoc_entity_type @SelfNested [concrete]
- // CHECK:STDOUT: %assoc0.beb: %SelfNested.assoc_type = assoc_entity element0, @SelfNested.%SelfNested.F.decl [concrete]
- // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [concrete]
- // CHECK:STDOUT: %SelfNested.impl_witness.eb9: <witness> = impl_witness @SelfNestedBadParam.%SelfNested.impl_witness_table [concrete]
- // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [concrete]
- // CHECK:STDOUT: %struct_type.x.y.871: type = struct_type {.x: %i32, .y: %i32} [concrete]
- // CHECK:STDOUT: %tuple.type.a7d: type = tuple_type (%ptr.4cd, %struct_type.x.y.871) [concrete]
- // CHECK:STDOUT: %pattern_type.714: type = pattern_type %tuple.type.a7d [concrete]
- // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [concrete]
- // CHECK:STDOUT: %pattern_type.1f1: type = pattern_type %array_type.a41 [concrete]
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete]
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1 = struct_value () [concrete]
- // CHECK:STDOUT: %SelfNested.facet.182: %SelfNested.type = facet_value %SelfNestedBadParam, (%SelfNested.impl_witness.eb9) [concrete]
- // CHECK:STDOUT: %struct_type.x.y.a89: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [concrete]
- // CHECK:STDOUT: %tuple.type.9c9: type = tuple_type (%ptr.4cd, %struct_type.x.y.a89) [concrete]
- // CHECK:STDOUT: %pattern_type.a5c: type = pattern_type %tuple.type.9c9 [concrete]
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete]
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2 = struct_value () [concrete]
- // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [concrete]
- // CHECK:STDOUT: %SelfNested.impl_witness.c55: <witness> = impl_witness @SelfNestedBadReturnType.%SelfNested.impl_witness_table [concrete]
- // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [concrete]
- // CHECK:STDOUT: %struct_type.x.y.ac5: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete]
- // CHECK:STDOUT: %tuple.type.eb9: type = tuple_type (%ptr.612, %struct_type.x.y.ac5) [concrete]
- // CHECK:STDOUT: %pattern_type.23f: type = pattern_type %tuple.type.eb9 [concrete]
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete]
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1 = struct_value () [concrete]
- // CHECK:STDOUT: %SelfNested.facet.55d: %SelfNested.type = facet_value %SelfNestedBadReturnType, (%SelfNested.impl_witness.c55) [concrete]
- // CHECK:STDOUT: %array_type.126: type = array_type %int_4, %SelfNestedBadReturnType [concrete]
- // CHECK:STDOUT: %pattern_type.f56: type = pattern_type %array_type.126 [concrete]
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete]
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2 = struct_value () [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
- // CHECK:STDOUT: .Bool = %Core.Bool
- // CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
- // CHECK:STDOUT: .Int = %Core.Int
- // CHECK:STDOUT: import Core//prelude
- // CHECK:STDOUT: import Core//prelude/...
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.Bool: %Bool.type = import_ref Core//prelude/parts/bool, Bool, loaded [concrete = constants.%Bool]
- // CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
- // CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
- // CHECK:STDOUT: .Core = imports.%Core
- // CHECK:STDOUT: .I = %I.decl
- // CHECK:STDOUT: .NoF = %NoF.decl
- // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
- // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
- // CHECK:STDOUT: .FAlias = %FAlias.decl
- // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
- // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
- // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
- // CHECK:STDOUT: .J = %J.decl
- // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
- // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
- // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
- // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
- // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
- // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
- // CHECK:STDOUT: .SelfNested = %SelfNested.decl
- // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
- // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.import = import Core
- // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
- // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [concrete = constants.%NoF] {} {}
- // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [concrete = constants.%FNotFunction] {} {}
- // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [concrete = constants.%PossiblyF] {} {}
- // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [concrete = constants.%FAlias] {} {}
- // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [concrete = constants.%FExtraParam] {} {}
- // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [concrete = constants.%FExtraImplicitParam] {} {}
- // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [concrete = constants.%FExtraReturnType] {} {}
- // CHECK:STDOUT: %J.decl: type = interface_decl @J [concrete = constants.%J.type] {} {}
- // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [concrete = constants.%FMissingParam] {} {}
- // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [concrete = constants.%FMissingImplicitParam] {} {}
- // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [concrete = constants.%FMissingReturnType] {} {}
- // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [concrete = constants.%FDifferentParamType] {} {}
- // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType] {} {}
- // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [concrete = constants.%FDifferentReturnType] {} {}
- // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [concrete = constants.%SelfNested.type] {} {}
- // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [concrete = constants.%SelfNestedBadParam] {} {}
- // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType] {} {}
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface @I {
- // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.7ee]
- // CHECK:STDOUT: %I.F.decl: %I.F.type = fn_decl @I.F [concrete = constants.%I.F] {} {}
- // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %I.F.decl [concrete = constants.%assoc0.82e]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self
- // CHECK:STDOUT: .F = %assoc0
- // CHECK:STDOUT: witness = (%I.F.decl)
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface @J {
- // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.bf6]
- // CHECK:STDOUT: %J.F.decl: %J.F.type = fn_decl @J.F [concrete = constants.%J.F] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call.loc103_44: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc103_44.1: type = value_of_initializer %Bool.call.loc103_44 [concrete = bool]
- // CHECK:STDOUT: %.loc103_44.2: type = converted %Bool.call.loc103_44, %.loc103_44.1 [concrete = bool]
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc103_26.1: type = splice_block %.loc103_26.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc103_26: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc103_26.2: type = value_of_initializer %Bool.call.loc103_26 [concrete = bool]
- // CHECK:STDOUT: %.loc103_26.3: type = converted %Bool.call.loc103_26, %.loc103_26.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %.loc103_35.1: type = splice_block %.loc103_35.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc103_35: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc103_35.2: type = value_of_initializer %Bool.call.loc103_35 [concrete = bool]
- // CHECK:STDOUT: %.loc103_35.3: type = converted %Bool.call.loc103_35, %.loc103_35.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %J.F.decl [concrete = constants.%assoc0.922]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self
- // CHECK:STDOUT: .F = %assoc0
- // CHECK:STDOUT: witness = (%J.F.decl)
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface @SelfNested {
- // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.3de]
- // CHECK:STDOUT: %SelfNested.F.decl: %SelfNested.F.type = fn_decl @SelfNested.F [concrete = constants.%SelfNested.F] {
- // CHECK:STDOUT: %x.patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.daf) = binding_pattern x [concrete]
- // CHECK:STDOUT: %x.param_patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.daf) = value_param_pattern %x.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.285) = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.285) = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Self.ref.loc211_50: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
- // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
- // CHECK:STDOUT: %Self.as_type.loc211_50: type = facet_access_type %Self.ref.loc211_50 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %.loc211_50: type = converted %Self.ref.loc211_50, %Self.as_type.loc211_50 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %array_type.loc211_57.2: type = array_type %int_4, %.loc211_50 [symbolic = %array_type.loc211_57.1 (constants.%array_type.fe2)]
- // CHECK:STDOUT: %x.param: @SelfNested.F.%tuple.type (%tuple.type.bf8) = value_param call_param0
- // CHECK:STDOUT: %.loc211_38.1: type = splice_block %.loc211_38.3 [symbolic = %tuple.type (constants.%tuple.type.bf8)] {
- // CHECK:STDOUT: %Self.ref.loc211_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
- // CHECK:STDOUT: %Self.as_type.loc211_16: type = facet_access_type %Self.ref.loc211_12 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %.loc211_16: type = converted %Self.ref.loc211_12, %Self.as_type.loc211_16 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %ptr.loc211_16.2: type = ptr_type %.loc211_16 [symbolic = %ptr.loc211_16.1 (constants.%ptr.7fb)]
- // CHECK:STDOUT: %Self.ref.loc211_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
- // CHECK:STDOUT: %Self.as_type.loc211_24: type = facet_access_type %Self.ref.loc211_24 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %.loc211_24: type = converted %Self.ref.loc211_24, %Self.as_type.loc211_24 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
- // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
- // CHECK:STDOUT: %struct_type.x.y.loc211_37.2: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.9fa), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.a78)]
- // CHECK:STDOUT: %.loc211_38.2: %tuple.type.24b = tuple_literal (%ptr.loc211_16.2, %struct_type.x.y.loc211_37.2)
- // CHECK:STDOUT: %.loc211_38.3: type = converted %.loc211_38.2, constants.%tuple.type.bf8 [symbolic = %tuple.type (constants.%tuple.type.bf8)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %x: @SelfNested.F.%tuple.type (%tuple.type.bf8) = bind_name x, %x.param
- // CHECK:STDOUT: %return.param: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2) = out_param call_param1
- // CHECK:STDOUT: %return: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2) = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %assoc0: %SelfNested.assoc_type = assoc_entity element0, %SelfNested.F.decl [concrete = constants.%assoc0.beb]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self
- // CHECK:STDOUT: .F = %assoc0
- // CHECK:STDOUT: witness = (%SelfNested.F.decl)
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @NoF.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = <poisoned>
- // CHECK:STDOUT: witness = @NoF.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FNotFunction.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: %F.decl: type = class_decl @F [concrete = constants.%F] {} {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %F.decl
- // CHECK:STDOUT: witness = @FNotFunction.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FAlias.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
- // CHECK:STDOUT: %F: %PossiblyF.type = bind_alias F, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .PossiblyF = <poisoned>
- // CHECK:STDOUT: .F = %F
- // CHECK:STDOUT: witness = @FAlias.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FExtraParam.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.decl.loc69_18.1: %FExtraParam.as.I.impl.F.type.edf38f.1 = fn_decl @FExtraParam.as.I.impl.F.loc69_18.1 [concrete = constants.%FExtraParam.as.I.impl.F.388f2d.1] {
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %b.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc69_13.1: type = splice_block %.loc69_13.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc69_13.2: type = value_of_initializer %Bool.call [concrete = bool]
- // CHECK:STDOUT: %.loc69_13.3: type = converted %Bool.call, %.loc69_13.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FExtraParam.as.I.impl.F.decl.loc69_18.2: %FExtraParam.as.I.impl.F.type.edf38f.2 = fn_decl @FExtraParam.as.I.impl.F.loc69_18.2 [concrete = constants.%FExtraParam.as.I.impl.F.388f2d.2] {} {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FExtraParam.as.I.impl.F.decl.loc69_18.1
- // CHECK:STDOUT: witness = @FExtraParam.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FExtraImplicitParam.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1 = fn_decl @FExtraImplicitParam.as.I.impl.F.loc85_23.1 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.49ab47.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.8ae = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.8ae = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param call_param0
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
- // CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.2: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.2 = fn_decl @FExtraImplicitParam.as.I.impl.F.loc85_23.2 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.49ab47.2] {} {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1
- // CHECK:STDOUT: witness = @FExtraImplicitParam.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FExtraReturnType.as.I.impl: %Self.ref as %I.ref {
- // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F.decl: %FExtraReturnType.as.I.impl.F.type = fn_decl @FExtraReturnType.as.I.impl.F [concrete = constants.%FExtraReturnType.as.I.impl.F] {
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc99_15.1: type = value_of_initializer %Bool.call [concrete = bool]
- // CHECK:STDOUT: %.loc99_15.2: type = converted %Bool.call, %.loc99_15.1 [concrete = bool]
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param0
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FExtraReturnType.as.I.impl.F.decl
- // CHECK:STDOUT: witness = @FExtraReturnType.%I.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FMissingParam.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.decl.loc117_31.1: %FMissingParam.as.J.impl.F.type.45f670.1 = fn_decl @FMissingParam.as.J.impl.F.loc117_31.1 [concrete = constants.%FMissingParam.as.J.impl.F.300f33.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call.loc117_27: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc117_27.1: type = value_of_initializer %Bool.call.loc117_27 [concrete = bool]
- // CHECK:STDOUT: %.loc117_27.2: type = converted %Bool.call.loc117_27, %.loc117_27.1 [concrete = bool]
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc117_16.1: type = splice_block %.loc117_16.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc117_16: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc117_16.2: type = value_of_initializer %Bool.call.loc117_16 [concrete = bool]
- // CHECK:STDOUT: %.loc117_16.3: type = converted %Bool.call.loc117_16, %.loc117_16.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.decl.loc117_31.2: %FMissingParam.as.J.impl.F.type.45f670.2 = fn_decl @FMissingParam.as.J.impl.F.loc117_31.2 [concrete = constants.%FMissingParam.as.J.impl.F.300f33.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FMissingParam.as.J.impl.F.decl.loc117_31.1
- // CHECK:STDOUT: witness = @FMissingParam.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FMissingImplicitParam.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1 = fn_decl @FMissingImplicitParam.as.J.impl.F.loc130_26.1 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.f3d16f.1] {
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call.loc130_22: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc130_22.1: type = value_of_initializer %Bool.call.loc130_22 [concrete = bool]
- // CHECK:STDOUT: %.loc130_22.2: type = converted %Bool.call.loc130_22, %.loc130_22.1 [concrete = bool]
- // CHECK:STDOUT: %b.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc130_13.1: type = splice_block %.loc130_13.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc130_13: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc130_13.2: type = value_of_initializer %Bool.call.loc130_13 [concrete = bool]
- // CHECK:STDOUT: %.loc130_13.3: type = converted %Bool.call.loc130_13, %.loc130_13.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.2: %FMissingImplicitParam.as.J.impl.F.type.1eb171.2 = fn_decl @FMissingImplicitParam.as.J.impl.F.loc130_26.2 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.f3d16f.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1
- // CHECK:STDOUT: witness = @FMissingImplicitParam.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FMissingReturnType.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.decl.loc152_30.1: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1 = fn_decl @FMissingReturnType.as.J.impl.F.loc152_30.1 [concrete = constants.%FMissingReturnType.as.J.impl.F.405ae3.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc152_16.1: type = splice_block %.loc152_16.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc152_16: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc152_16.2: type = value_of_initializer %Bool.call.loc152_16 [concrete = bool]
- // CHECK:STDOUT: %.loc152_16.3: type = converted %Bool.call.loc152_16, %.loc152_16.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %.loc152_25.1: type = splice_block %.loc152_25.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc152_25: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc152_25.2: type = value_of_initializer %Bool.call.loc152_25 [concrete = bool]
- // CHECK:STDOUT: %.loc152_25.3: type = converted %Bool.call.loc152_25, %.loc152_25.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.decl.loc152_30.2: %FMissingReturnType.as.J.impl.F.type.2c3eb9.2 = fn_decl @FMissingReturnType.as.J.impl.F.loc152_30.2 [concrete = constants.%FMissingReturnType.as.J.impl.F.405ae3.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FMissingReturnType.as.J.impl.F.decl.loc152_30.1
- // CHECK:STDOUT: witness = @FMissingReturnType.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FDifferentParamType.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.decl.loc171_38.1: %FDifferentParamType.as.J.impl.F.type.30a936.1 = fn_decl @FDifferentParamType.as.J.impl.F.loc171_38.1 [concrete = constants.%FDifferentParamType.as.J.impl.F.0ea197.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.b90 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.b90 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call.loc171_34: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc171_34.1: type = value_of_initializer %Bool.call.loc171_34 [concrete = bool]
- // CHECK:STDOUT: %.loc171_34.2: type = converted %Bool.call.loc171_34, %.loc171_34.1 [concrete = bool]
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc171_16.1: type = splice_block %.loc171_16.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc171_16: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc171_16.2: type = value_of_initializer %Bool.call.loc171_16 [concrete = bool]
- // CHECK:STDOUT: %.loc171_16.3: type = converted %Bool.call.loc171_16, %.loc171_16.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param call_param1
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
- // CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.decl.loc171_38.2: %FDifferentParamType.as.J.impl.F.type.30a936.2 = fn_decl @FDifferentParamType.as.J.impl.F.loc171_38.2 [concrete = constants.%FDifferentParamType.as.J.impl.F.0ea197.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FDifferentParamType.as.J.impl.F.decl.loc171_38.1
- // CHECK:STDOUT: witness = @FDifferentParamType.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FDifferentImplicitParamType.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1 = fn_decl @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.3caa22.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.9cc = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.9cc = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Bool.call.loc184_34: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc184_34.1: type = value_of_initializer %Bool.call.loc184_34 [concrete = bool]
- // CHECK:STDOUT: %.loc184_34.2: type = converted %Bool.call.loc184_34, %.loc184_34.1 [concrete = bool]
- // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param call_param0
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
- // CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %.loc184_25.1: type = splice_block %.loc184_25.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc184_25: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc184_25.2: type = value_of_initializer %Bool.call.loc184_25 [concrete = bool]
- // CHECK:STDOUT: %.loc184_25.3: type = converted %Bool.call.loc184_25, %.loc184_25.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.2: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.2 = fn_decl @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.3caa22.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1
- // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @FDifferentReturnType.as.J.impl: %Self.ref as %J.ref {
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1: %FDifferentReturnType.as.J.impl.F.type.3243f4.1 = fn_decl @FDifferentReturnType.as.J.impl.F.loc200_38.1 [concrete = constants.%FDifferentReturnType.as.J.impl.F.e4a0b7.1] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.8ee = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.8ee = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %.loc200_16.1: type = splice_block %.loc200_16.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc200_16: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc200_16.2: type = value_of_initializer %Bool.call.loc200_16 [concrete = bool]
- // CHECK:STDOUT: %.loc200_16.3: type = converted %Bool.call.loc200_16, %.loc200_16.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %.loc200_25.1: type = splice_block %.loc200_25.3 [concrete = bool] {
- // CHECK:STDOUT: %Bool.call.loc200_25: init type = call constants.%Bool() [concrete = bool]
- // CHECK:STDOUT: %.loc200_25.2: type = value_of_initializer %Bool.call.loc200_25 [concrete = bool]
- // CHECK:STDOUT: %.loc200_25.3: type = converted %Bool.call.loc200_25, %.loc200_25.2 [concrete = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param call_param2
- // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.decl.loc200_38.2: %FDifferentReturnType.as.J.impl.F.type.3243f4.2 = fn_decl @FDifferentReturnType.as.J.impl.F.loc200_38.2 [concrete = constants.%FDifferentReturnType.as.J.impl.F.e4a0b7.2] {
- // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
- // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
- // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
- // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %self.param: bool = value_param call_param0
- // CHECK:STDOUT: %self: bool = bind_name self, %self.param
- // CHECK:STDOUT: %b.param: bool = value_param call_param1
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .F = %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1
- // CHECK:STDOUT: witness = @FDifferentReturnType.%J.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @SelfNestedBadParam.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1 = fn_decl @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.72ff49.1] {
- // CHECK:STDOUT: %x.patt: %pattern_type.714 = binding_pattern x [concrete]
- // CHECK:STDOUT: %x.param_patt: %pattern_type.714 = value_param_pattern %x.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_65: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
- // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
- // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref.loc223_65 [concrete = constants.%array_type.a41]
- // CHECK:STDOUT: %x.param: %tuple.type.a7d = value_param call_param0
- // CHECK:STDOUT: %.loc223_53.1: type = splice_block %.loc223_53.3 [concrete = constants.%tuple.type.a7d] {
- // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
- // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam.ref.loc223_14 [concrete = constants.%ptr.4cd]
- // CHECK:STDOUT: %int_32.loc223_40: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
- // CHECK:STDOUT: %i32.loc223_40: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
- // CHECK:STDOUT: %int_32.loc223_49: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
- // CHECK:STDOUT: %i32.loc223_49: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
- // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [concrete = constants.%struct_type.x.y.871]
- // CHECK:STDOUT: %.loc223_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
- // CHECK:STDOUT: %.loc223_53.3: type = converted %.loc223_53.2, constants.%tuple.type.a7d [concrete = constants.%tuple.type.a7d]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %x: %tuple.type.a7d = bind_name x, %x.param
- // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
- // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2 = fn_decl @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.72ff49.2] {
- // CHECK:STDOUT: %x.patt: %pattern_type.a5c = binding_pattern x [concrete]
- // CHECK:STDOUT: %x.param_patt: %pattern_type.a5c = value_param_pattern %x.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %x.param: %tuple.type.9c9 = value_param call_param0
- // CHECK:STDOUT: %x: %tuple.type.9c9 = bind_name x, %x.param
- // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
- // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
- // CHECK:STDOUT: .F = %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1
- // CHECK:STDOUT: witness = @SelfNestedBadParam.%SelfNested.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @SelfNestedBadReturnType.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1 = fn_decl @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.1] {
- // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
- // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
- // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
- // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref [concrete = constants.%array_type.a41]
- // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
- // CHECK:STDOUT: %.loc239_78.1: type = splice_block %.loc239_78.3 [concrete = constants.%tuple.type.eb9] {
- // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
- // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType.ref.loc239_14 [concrete = constants.%ptr.612]
- // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
- // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
- // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
- // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete = constants.%struct_type.x.y.ac5]
- // CHECK:STDOUT: %.loc239_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
- // CHECK:STDOUT: %.loc239_78.3: type = converted %.loc239_78.2, constants.%tuple.type.eb9 [concrete = constants.%tuple.type.eb9]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
- // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
- // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2 = fn_decl @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.2] {
- // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
- // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: %pattern_type.f56 = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: %pattern_type.f56 = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
- // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
- // CHECK:STDOUT: %return.param: ref %array_type.126 = out_param call_param1
- // CHECK:STDOUT: %return: ref %array_type.126 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
- // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
- // CHECK:STDOUT: .F = %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1
- // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%SelfNested.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @NoF {
- // CHECK:STDOUT: impl_decl @NoF.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @NoF.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.6bf]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%NoF
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FNotFunction {
- // CHECK:STDOUT: impl_decl @FNotFunction.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FNotFunction.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.aac]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FNotFunction
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @F;
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FAlias {
- // CHECK:STDOUT: impl_decl @FAlias.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FAlias.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.bfe]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FAlias
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: .PossiblyF = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FExtraParam {
- // CHECK:STDOUT: impl_decl @FExtraParam.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (@FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.2), @FExtraParam.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.4a4]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FExtraParam
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FExtraImplicitParam {
- // CHECK:STDOUT: impl_decl @FExtraImplicitParam.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (@FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.2), @FExtraImplicitParam.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.c03]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FExtraReturnType {
- // CHECK:STDOUT: impl_decl @FExtraReturnType.as.I.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
- // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FExtraReturnType.as.I.impl [concrete]
- // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.8ff]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FExtraReturnType
- // CHECK:STDOUT: .I = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FMissingParam {
- // CHECK:STDOUT: impl_decl @FMissingParam.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.2), @FMissingParam.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.6a1]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FMissingParam
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FMissingImplicitParam {
- // CHECK:STDOUT: impl_decl @FMissingImplicitParam.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.2), @FMissingImplicitParam.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5f7]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FMissingReturnType {
- // CHECK:STDOUT: impl_decl @FMissingReturnType.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.2), @FMissingReturnType.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.901]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FMissingReturnType
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FDifferentParamType {
- // CHECK:STDOUT: impl_decl @FDifferentParamType.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.2), @FDifferentParamType.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.9c0]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FDifferentParamType
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FDifferentImplicitParamType {
- // CHECK:STDOUT: impl_decl @FDifferentImplicitParamType.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.2), @FDifferentImplicitParamType.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5b4]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @FDifferentReturnType {
- // CHECK:STDOUT: impl_decl @FDifferentReturnType.as.J.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
- // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.2), @FDifferentReturnType.as.J.impl [concrete]
- // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.bca]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
- // CHECK:STDOUT: .J = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @SelfNestedBadParam {
- // CHECK:STDOUT: impl_decl @SelfNestedBadParam.as.SelfNested.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
- // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %SelfNested.impl_witness_table = impl_witness_table (@SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.2), @SelfNestedBadParam.as.SelfNested.impl [concrete]
- // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.eb9]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
- // CHECK:STDOUT: .SelfNested = <poisoned>
- // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @SelfNestedBadReturnType {
- // CHECK:STDOUT: impl_decl @SelfNestedBadReturnType.as.SelfNested.impl [concrete] {} {
- // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
- // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %SelfNested.impl_witness_table = impl_witness_table (@SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.2), @SelfNestedBadReturnType.as.SelfNested.impl [concrete]
- // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.c55]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
- // CHECK:STDOUT: .SelfNested = <poisoned>
- // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
- // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @I.F(@I.%Self: %I.type) {
- // CHECK:STDOUT: fn();
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @PossiblyF();
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.1(%b.param: bool);
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.2() [thunk @FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FExtraParam.as.I.impl.F.type.edf38f.1 = name_ref F, @FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.1 [concrete = constants.%FExtraParam.as.I.impl.F.388f2d.1]
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.1(%self.param: %FExtraImplicitParam);
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.2() [thunk @FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1 = name_ref F, @FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.49ab47.1]
- // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.call: init %empty_tuple.type = call %F.ref(<error>)
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FExtraReturnType.as.I.impl.F() -> bool;
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @J.F(@J.%Self: %J.type) {
- // CHECK:STDOUT: fn(%self.param: bool, %b.param: bool) -> bool;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.1(%self.param: bool) -> bool;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FMissingParam.as.J.impl.F.type.45f670.1 = name_ref F, @FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.1 [concrete = constants.%FMissingParam.as.J.impl.F.300f33.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
- // CHECK:STDOUT: return <error> to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.1(%b.param: bool) -> bool;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1 = name_ref F, @FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.f3d16f.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.ref)
- // CHECK:STDOUT: return %FMissingImplicitParam.as.J.impl.F.call to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.1(%self.param: bool, %b.param: bool);
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1 = name_ref F, @FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.1 [concrete = constants.%FMissingReturnType.as.J.impl.F.405ae3.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
- // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
- // CHECK:STDOUT: %.loc152: bool = converted %FMissingReturnType.as.J.impl.F.call, <error> [concrete = <error>]
- // CHECK:STDOUT: return <error> to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.1(%self.param: bool, %b.param: %FDifferentParamType) -> bool;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FDifferentParamType.as.J.impl.F.type.30a936.1 = name_ref F, @FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.1 [concrete = constants.%FDifferentParamType.as.J.impl.F.0ea197.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
- // CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.ref, <error> [concrete = <error>]
- // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.ref, <error>)
- // CHECK:STDOUT: return %FDifferentParamType.as.J.impl.F.call to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1(%self.param: %FDifferentImplicitParamType, %b.param: bool) -> bool;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1 = name_ref F, @FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.3caa22.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
- // CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.ref, <error> [concrete = <error>]
- // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.ref)
- // CHECK:STDOUT: return %FDifferentImplicitParamType.as.J.impl.F.call to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.1(%self.param: bool, %b.param: bool) -> %return.param: %FDifferentReturnType;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %FDifferentReturnType.as.J.impl.F.type.3243f4.1 = name_ref F, @FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.1 [concrete = constants.%FDifferentReturnType.as.J.impl.F.e4a0b7.1]
- // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
- // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
- // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
- // CHECK:STDOUT: %.loc200_38.1: ref %FDifferentReturnType = temporary_storage
- // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.call: init %FDifferentReturnType = call %FDifferentReturnType.as.J.impl.F.bound(%self.ref, %b.ref) to %.loc200_38.1
- // CHECK:STDOUT: %.loc200_38.2: bool = converted %FDifferentReturnType.as.J.impl.F.call, <error> [concrete = <error>]
- // CHECK:STDOUT: return <error> to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @SelfNested.F(@SelfNested.%Self: %SelfNested.type) {
- // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.3de)]
- // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 0, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
- // CHECK:STDOUT: %ptr.loc211_16.1: type = ptr_type %Self.binding.as_type [symbolic = %ptr.loc211_16.1 (constants.%ptr.7fb)]
- // CHECK:STDOUT: %struct_type.x.y.loc211_37.1: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.9fa), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.a78)]
- // CHECK:STDOUT: %tuple.type: type = tuple_type (%ptr.loc211_16.1, %struct_type.x.y.loc211_37.1) [symbolic = %tuple.type (constants.%tuple.type.bf8)]
- // CHECK:STDOUT: %pattern_type.loc211_8: type = pattern_type %tuple.type [symbolic = %pattern_type.loc211_8 (constants.%pattern_type.daf)]
- // CHECK:STDOUT: %array_type.loc211_57.1: type = array_type constants.%int_4, %Self.binding.as_type [symbolic = %array_type.loc211_57.1 (constants.%array_type.fe2)]
- // CHECK:STDOUT: %pattern_type.loc211_41: type = pattern_type %array_type.loc211_57.1 [symbolic = %pattern_type.loc211_41 (constants.%pattern_type.285)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn(%x.param: @SelfNested.F.%tuple.type (%tuple.type.bf8)) -> @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2);
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1(%x.param: %tuple.type.a7d) -> %return.param: %array_type.a41;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2(%x.param: %tuple.type.9c9) -> %return.param: %array_type.a41 [thunk @SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1 = name_ref F, @SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.72ff49.1]
- // CHECK:STDOUT: %x.ref: %tuple.type.9c9 = name_ref x, %x.param
- // CHECK:STDOUT: %return.ref: ref %array_type.a41 = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %.loc211_41: ref %array_type.a41 = splice_block %return {}
- // CHECK:STDOUT: %tuple.elem0: %ptr.4cd = tuple_access %x.ref, element0
- // CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.a89 = tuple_access %x.ref, element1
- // CHECK:STDOUT: %.loc211_9.1: %SelfNestedBadParam = struct_access %tuple.elem1, element0
- // CHECK:STDOUT: %.loc211_9.2: %i32 = converted %.loc211_9.1, <error> [concrete = <error>]
- // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(<error>) to %.loc211_41
- // CHECK:STDOUT: return %SelfNestedBadParam.as.SelfNested.impl.F.call to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1(%x.param: %tuple.type.eb9) -> %return.param: %array_type.a41;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2(%x.param: %tuple.type.eb9) -> %return.param: %array_type.126 [thunk @SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1] {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %F.ref: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1 = name_ref F, @SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.1]
- // CHECK:STDOUT: %x.ref: %tuple.type.eb9 = name_ref x, %x.param
- // CHECK:STDOUT: %return.ref: ref %array_type.126 = name_ref <return slot>, %return.param
- // CHECK:STDOUT: %.loc239_112.1: ref %array_type.a41 = temporary_storage
- // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(%x.ref) to %.loc239_112.1
- // CHECK:STDOUT: %.loc239_112.2: %array_type.126 = converted %SelfNestedBadReturnType.as.SelfNested.impl.F.call, <error> [concrete = <error>]
- // CHECK:STDOUT: return <error> to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.F(constants.%Self.7ee) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.F(constants.%I.facet.888) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.F(constants.%I.facet.242) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @I.F(constants.%I.facet.d1c) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%Self.bf6) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.b0a) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.2cb) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.92c) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.bad) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.923) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @J.F(constants.%J.facet.a25) {}
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @SelfNested.F(constants.%Self.3de) {
- // CHECK:STDOUT: %Self => constants.%Self.3de
- // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.9fa
- // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.7fb
- // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a78
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.bf8
- // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.daf
- // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.fe2
- // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.285
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.182) {
- // CHECK:STDOUT: %Self => constants.%SelfNested.facet.182
- // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadParam
- // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.4cd
- // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a89
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.9c9
- // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.a5c
- // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.a41
- // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.1f1
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.55d) {
- // CHECK:STDOUT: %Self => constants.%SelfNested.facet.55d
- // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadReturnType
- // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.612
- // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.ac5
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.eb9
- // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.23f
- // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.126
- // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.f56
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
|