fail_impl_bad_assoc_fn.carbon 104 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/primitives.carbon
  6. // TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
  7. // EXTRA-ARGS: --dump-sem-ir-ranges=if-present
  8. //
  9. // AUTOUPDATE
  10. // TIP: To test this file alone, run:
  11. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  14. interface I { fn F(); }
  15. class NoF {
  16. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:3: error: missing implementation of F in impl of interface I [ImplMissingFunction]
  17. // CHECK:STDERR: impl as I {}
  18. // CHECK:STDERR: ^~~~~~~~~~~
  19. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-6]]:15: note: associated function F declared here [AssociatedFunctionHere]
  20. // CHECK:STDERR: interface I { fn F(); }
  21. // CHECK:STDERR: ^~~~~~~
  22. // CHECK:STDERR:
  23. impl as I {}
  24. }
  25. class FNotFunction {
  26. impl as I {
  27. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  28. // CHECK:STDERR: class F;
  29. // CHECK:STDERR: ^~~~~~~~
  30. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-18]]:15: note: associated function F declared here [AssociatedFunctionHere]
  31. // CHECK:STDERR: interface I { fn F(); }
  32. // CHECK:STDERR: ^~~~~~~
  33. // CHECK:STDERR:
  34. class F;
  35. }
  36. }
  37. fn PossiblyF();
  38. // TODO: Should this be permitted?
  39. class FAlias {
  40. impl as I {
  41. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:11: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  42. // CHECK:STDERR: alias F = PossiblyF;
  43. // CHECK:STDERR: ^
  44. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-34]]:15: note: associated function F declared here [AssociatedFunctionHere]
  45. // CHECK:STDERR: interface I { fn F(); }
  46. // CHECK:STDERR: ^~~~~~~
  47. // CHECK:STDERR:
  48. alias F = PossiblyF;
  49. }
  50. }
  51. class FExtraParam {
  52. impl as I {
  53. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 0 arguments passed to function expecting 1 argument [CallArgCountMismatch]
  54. // CHECK:STDERR: fn F(b: bool);
  55. // CHECK:STDERR: ^~~~~~~~~~~~~~
  56. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
  57. // CHECK:STDERR: fn F(b: bool);
  58. // CHECK:STDERR: ^~~~~~~~~~~~~~
  59. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-50]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  60. // CHECK:STDERR: interface I { fn F(); }
  61. // CHECK:STDERR: ^~~~~~~
  62. // CHECK:STDERR:
  63. fn F(b: bool);
  64. }
  65. }
  66. class FExtraImplicitParam {
  67. impl as I {
  68. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: missing object argument in method call [MissingObjectInMethodCall]
  69. // CHECK:STDERR: fn F[self: Self]();
  70. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
  71. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToFunction]
  72. // CHECK:STDERR: fn F[self: Self]();
  73. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
  74. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-66]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  75. // CHECK:STDERR: interface I { fn F(); }
  76. // CHECK:STDERR: ^~~~~~~
  77. // CHECK:STDERR:
  78. fn F[self: Self]();
  79. }
  80. }
  81. // TODO: Should this be permitted?
  82. class FExtraReturnType {
  83. impl as I {
  84. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `bool` [FunctionRedeclReturnTypeDiffers]
  85. // CHECK:STDERR: fn F() -> bool;
  86. // CHECK:STDERR: ^~~~~~~~~~~~~~~
  87. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-80]]:15: note: previously declared with no return type [FunctionRedeclReturnTypePreviousNoReturn]
  88. // CHECK:STDERR: interface I { fn F(); }
  89. // CHECK:STDERR: ^~~~~~~
  90. // CHECK:STDERR:
  91. fn F() -> bool;
  92. }
  93. }
  94. interface J { fn F[self: bool](b: bool) -> bool; }
  95. class FMissingParam {
  96. impl as J {
  97. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 1 argument passed to function expecting 0 arguments [CallArgCountMismatch]
  98. // CHECK:STDERR: fn F[self: bool]() -> bool;
  99. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
  101. // CHECK:STDERR: fn F[self: bool]() -> bool;
  102. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  103. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-10]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  104. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  105. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  106. // CHECK:STDERR:
  107. fn F[self: bool]() -> bool;
  108. }
  109. }
  110. class FMissingImplicitParam {
  111. impl as J {
  112. // 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]
  113. // CHECK:STDERR: fn F(b: bool) -> bool;
  114. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
  115. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-23]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  116. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  117. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. // CHECK:STDERR:
  119. fn F(b: bool) -> bool;
  120. }
  121. }
  122. class FMissingReturnType {
  123. impl as J {
  124. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+16]]:5: error: cannot implicitly convert expression of type `()` to `bool` [ConversionFailure]
  125. // CHECK:STDERR: fn F[self: bool](b: bool);
  126. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
  127. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:5: note: type `()` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
  128. // CHECK:STDERR: fn F[self: bool](b: bool);
  129. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
  130. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-39]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  131. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  132. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. // CHECK:STDERR:
  134. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-43]]:32: error: cannot implicitly convert expression of type `bool` to `FDifferentParamType` [ConversionFailure]
  135. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  136. // CHECK:STDERR: ^~~~~~~
  137. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-46]]:32: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentParamType)` [MissingImplInMemberAccessNote]
  138. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  139. // CHECK:STDERR: ^~~~~~~
  140. fn F[self: bool](b: bool);
  141. }
  142. }
  143. class FDifferentParamType {
  144. impl as J {
  145. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:22: note: initializing function parameter [InCallToFunctionParam]
  146. // CHECK:STDERR: fn F[self: bool](b: Self) -> bool;
  147. // CHECK:STDERR: ^~~~~~~
  148. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-58]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  149. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  150. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  151. // CHECK:STDERR:
  152. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-62]]:20: error: cannot implicitly convert expression of type `bool` to `FDifferentImplicitParamType` [ConversionFailure]
  153. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  154. // CHECK:STDERR: ^~~~~~~~~~
  155. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-65]]:20: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentImplicitParamType)` [MissingImplInMemberAccessNote]
  156. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  157. // CHECK:STDERR: ^~~~~~~~~~
  158. fn F[self: bool](b: Self) -> bool;
  159. }
  160. }
  161. class FDifferentImplicitParamType {
  162. impl as J {
  163. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
  164. // CHECK:STDERR: fn F[self: Self](b: bool) -> bool;
  165. // CHECK:STDERR: ^~~~~~~~~~
  166. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-77]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  167. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  168. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169. // CHECK:STDERR:
  170. fn F[self: Self](b: bool) -> bool;
  171. }
  172. }
  173. class FDifferentReturnType {
  174. impl as J {
  175. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: cannot implicitly convert expression of type `FDifferentReturnType` to `bool` [ConversionFailure]
  176. // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
  177. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: type `FDifferentReturnType` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
  179. // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
  180. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  181. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-93]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  182. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  183. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184. // CHECK:STDERR:
  185. fn F[self: bool](b: bool) -> Self;
  186. }
  187. }
  188. interface SelfNested {
  189. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+6]]:8: error: cannot implicitly convert expression of type `SelfNestedBadParam` to `i32` [ConversionFailure]
  190. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  191. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  192. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+3]]:8: note: type `SelfNestedBadParam` does not implement interface `Core.ImplicitAs(i32)` [MissingImplInMemberAccessNote]
  193. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  194. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  195. fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  196. }
  197. class SelfNestedBadParam {
  198. impl as SelfNested {
  199. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
  200. // CHECK:STDERR: fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
  201. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  202. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-8]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
  203. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  204. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  205. // CHECK:STDERR:
  206. fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
  207. }
  208. }
  209. class SelfNestedBadReturnType {
  210. impl as SelfNested {
  211. // 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]
  212. // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  213. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  214. // 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]
  215. // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  216. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  217. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-24]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
  218. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  219. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  220. // CHECK:STDERR:
  221. fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  222. }
  223. }
  224. // CHECK:STDOUT: --- fail_impl_bad_assoc_fn.carbon
  225. // CHECK:STDOUT:
  226. // CHECK:STDOUT: constants {
  227. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  228. // CHECK:STDOUT: %Self.9f2: %I.type = symbolic_binding Self, 0 [symbolic]
  229. // CHECK:STDOUT: %I.F.type: type = fn_type @I.F [concrete]
  230. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  231. // CHECK:STDOUT: %I.F: %I.F.type = struct_value () [concrete]
  232. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
  233. // CHECK:STDOUT: %assoc0.82e: %I.assoc_type = assoc_entity element0, @I.%I.F.decl [concrete]
  234. // CHECK:STDOUT: %NoF: type = class_type @NoF [concrete]
  235. // CHECK:STDOUT: %I.impl_witness.6bf: <witness> = impl_witness @NoF.%I.impl_witness_table [concrete]
  236. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  237. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
  238. // CHECK:STDOUT: %FNotFunction: type = class_type @FNotFunction [concrete]
  239. // CHECK:STDOUT: %I.impl_witness.aac: <witness> = impl_witness @FNotFunction.%I.impl_witness_table [concrete]
  240. // CHECK:STDOUT: %F: type = class_type @F [concrete]
  241. // CHECK:STDOUT: %PossiblyF.type: type = fn_type @PossiblyF [concrete]
  242. // CHECK:STDOUT: %PossiblyF: %PossiblyF.type = struct_value () [concrete]
  243. // CHECK:STDOUT: %FAlias: type = class_type @FAlias [concrete]
  244. // CHECK:STDOUT: %I.impl_witness.bfe: <witness> = impl_witness @FAlias.%I.impl_witness_table [concrete]
  245. // CHECK:STDOUT: %FExtraParam: type = class_type @FExtraParam [concrete]
  246. // CHECK:STDOUT: %I.impl_witness.4a4: <witness> = impl_witness @FExtraParam.%I.impl_witness_table [concrete]
  247. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
  248. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
  249. // CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
  250. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.edf38f.1: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.1 [concrete]
  251. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.388f2d.1: %FExtraParam.as.I.impl.F.type.edf38f.1 = struct_value () [concrete]
  252. // CHECK:STDOUT: %I.facet.888: %I.type = facet_value %FExtraParam, (%I.impl_witness.4a4) [concrete]
  253. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.edf38f.2: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.2 [concrete]
  254. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.388f2d.2: %FExtraParam.as.I.impl.F.type.edf38f.2 = struct_value () [concrete]
  255. // CHECK:STDOUT: %FExtraImplicitParam: type = class_type @FExtraImplicitParam [concrete]
  256. // CHECK:STDOUT: %I.impl_witness.c03: <witness> = impl_witness @FExtraImplicitParam.%I.impl_witness_table [concrete]
  257. // CHECK:STDOUT: %pattern_type.8ae: type = pattern_type %FExtraImplicitParam [concrete]
  258. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.1 [concrete]
  259. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.49ab47.1: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.1 = struct_value () [concrete]
  260. // CHECK:STDOUT: %I.facet.242: %I.type = facet_value %FExtraImplicitParam, (%I.impl_witness.c03) [concrete]
  261. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.2: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.2 [concrete]
  262. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.49ab47.2: %FExtraImplicitParam.as.I.impl.F.type.d9d8e3.2 = struct_value () [concrete]
  263. // CHECK:STDOUT: %FExtraReturnType: type = class_type @FExtraReturnType [concrete]
  264. // CHECK:STDOUT: %I.impl_witness.8ff: <witness> = impl_witness @FExtraReturnType.%I.impl_witness_table [concrete]
  265. // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F.type: type = fn_type @FExtraReturnType.as.I.impl.F [concrete]
  266. // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F: %FExtraReturnType.as.I.impl.F.type = struct_value () [concrete]
  267. // CHECK:STDOUT: %I.facet.d1c: %I.type = facet_value %FExtraReturnType, (%I.impl_witness.8ff) [concrete]
  268. // CHECK:STDOUT: %J.type: type = facet_type <@J> [concrete]
  269. // CHECK:STDOUT: %Self.dc6: %J.type = symbolic_binding Self, 0 [symbolic]
  270. // CHECK:STDOUT: %J.F.type: type = fn_type @J.F [concrete]
  271. // CHECK:STDOUT: %J.F: %J.F.type = struct_value () [concrete]
  272. // CHECK:STDOUT: %J.assoc_type: type = assoc_entity_type @J [concrete]
  273. // CHECK:STDOUT: %assoc0.922: %J.assoc_type = assoc_entity element0, @J.%J.F.decl [concrete]
  274. // CHECK:STDOUT: %FMissingParam: type = class_type @FMissingParam [concrete]
  275. // CHECK:STDOUT: %J.impl_witness.6a1: <witness> = impl_witness @FMissingParam.%J.impl_witness_table [concrete]
  276. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.45f670.1: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.1 [concrete]
  277. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.300f33.1: %FMissingParam.as.J.impl.F.type.45f670.1 = struct_value () [concrete]
  278. // CHECK:STDOUT: %J.facet.b0a: %J.type = facet_value %FMissingParam, (%J.impl_witness.6a1) [concrete]
  279. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.45f670.2: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.2 [concrete]
  280. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.300f33.2: %FMissingParam.as.J.impl.F.type.45f670.2 = struct_value () [concrete]
  281. // CHECK:STDOUT: %FMissingImplicitParam: type = class_type @FMissingImplicitParam [concrete]
  282. // CHECK:STDOUT: %J.impl_witness.5f7: <witness> = impl_witness @FMissingImplicitParam.%J.impl_witness_table [concrete]
  283. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.1 [concrete]
  284. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.f3d16f.1: %FMissingImplicitParam.as.J.impl.F.type.1eb171.1 = struct_value () [concrete]
  285. // CHECK:STDOUT: %J.facet.2cb: %J.type = facet_value %FMissingImplicitParam, (%J.impl_witness.5f7) [concrete]
  286. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.1eb171.2: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.2 [concrete]
  287. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.f3d16f.2: %FMissingImplicitParam.as.J.impl.F.type.1eb171.2 = struct_value () [concrete]
  288. // CHECK:STDOUT: %FMissingReturnType: type = class_type @FMissingReturnType [concrete]
  289. // CHECK:STDOUT: %J.impl_witness.901: <witness> = impl_witness @FMissingReturnType.%J.impl_witness_table [concrete]
  290. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.1 [concrete]
  291. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.405ae3.1: %FMissingReturnType.as.J.impl.F.type.2c3eb9.1 = struct_value () [concrete]
  292. // CHECK:STDOUT: %J.facet.92c: %J.type = facet_value %FMissingReturnType, (%J.impl_witness.901) [concrete]
  293. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.2c3eb9.2: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.2 [concrete]
  294. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.405ae3.2: %FMissingReturnType.as.J.impl.F.type.2c3eb9.2 = struct_value () [concrete]
  295. // CHECK:STDOUT: %ImplicitAs.type.cc7: type = generic_interface_type @ImplicitAs [concrete]
  296. // CHECK:STDOUT: %ImplicitAs.generic: %ImplicitAs.type.cc7 = struct_value () [concrete]
  297. // CHECK:STDOUT: %FDifferentParamType: type = class_type @FDifferentParamType [concrete]
  298. // CHECK:STDOUT: %J.impl_witness.9c0: <witness> = impl_witness @FDifferentParamType.%J.impl_witness_table [concrete]
  299. // CHECK:STDOUT: %pattern_type.b90: type = pattern_type %FDifferentParamType [concrete]
  300. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.30a936.1: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.1 [concrete]
  301. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.0ea197.1: %FDifferentParamType.as.J.impl.F.type.30a936.1 = struct_value () [concrete]
  302. // CHECK:STDOUT: %J.facet.bad: %J.type = facet_value %FDifferentParamType, (%J.impl_witness.9c0) [concrete]
  303. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.30a936.2: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.2 [concrete]
  304. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.0ea197.2: %FDifferentParamType.as.J.impl.F.type.30a936.2 = struct_value () [concrete]
  305. // CHECK:STDOUT: %FDifferentImplicitParamType: type = class_type @FDifferentImplicitParamType [concrete]
  306. // CHECK:STDOUT: %J.impl_witness.5b4: <witness> = impl_witness @FDifferentImplicitParamType.%J.impl_witness_table [concrete]
  307. // CHECK:STDOUT: %pattern_type.9cc: type = pattern_type %FDifferentImplicitParamType [concrete]
  308. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1 [concrete]
  309. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.3caa22.1: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.1 = struct_value () [concrete]
  310. // CHECK:STDOUT: %J.facet.923: %J.type = facet_value %FDifferentImplicitParamType, (%J.impl_witness.5b4) [concrete]
  311. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.2: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2 [concrete]
  312. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.3caa22.2: %FDifferentImplicitParamType.as.J.impl.F.type.ac79c6.2 = struct_value () [concrete]
  313. // CHECK:STDOUT: %FDifferentReturnType: type = class_type @FDifferentReturnType [concrete]
  314. // CHECK:STDOUT: %J.impl_witness.bca: <witness> = impl_witness @FDifferentReturnType.%J.impl_witness_table [concrete]
  315. // CHECK:STDOUT: %pattern_type.8ee: type = pattern_type %FDifferentReturnType [concrete]
  316. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.3243f4.1: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.1 [concrete]
  317. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.e4a0b7.1: %FDifferentReturnType.as.J.impl.F.type.3243f4.1 = struct_value () [concrete]
  318. // CHECK:STDOUT: %J.facet.a25: %J.type = facet_value %FDifferentReturnType, (%J.impl_witness.bca) [concrete]
  319. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.3243f4.2: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.2 [concrete]
  320. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.e4a0b7.2: %FDifferentReturnType.as.J.impl.F.type.3243f4.2 = struct_value () [concrete]
  321. // CHECK:STDOUT: %SelfNested.type: type = facet_type <@SelfNested> [concrete]
  322. // CHECK:STDOUT: %Self.708: %SelfNested.type = symbolic_binding Self, 0 [symbolic]
  323. // CHECK:STDOUT: %Self.binding.as_type.49d: type = symbolic_binding_type Self, 0, %Self.708 [symbolic]
  324. // CHECK:STDOUT: %ptr.e7a: type = ptr_type %Self.binding.as_type.49d [symbolic]
  325. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
  326. // CHECK:STDOUT: %Int.type: type = generic_class_type @Int [concrete]
  327. // CHECK:STDOUT: %Int.generic: %Int.type = struct_value () [concrete]
  328. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
  329. // CHECK:STDOUT: %struct_type.x.y.c4d: type = struct_type {.x: %Self.binding.as_type.49d, .y: %i32} [symbolic]
  330. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
  331. // CHECK:STDOUT: %tuple.d1f: %tuple.type.24b = tuple_value (%ptr.e7a, %struct_type.x.y.c4d) [symbolic]
  332. // CHECK:STDOUT: %tuple.type.82c: type = tuple_type (%ptr.e7a, %struct_type.x.y.c4d) [symbolic]
  333. // CHECK:STDOUT: %pattern_type.b78: type = pattern_type %tuple.type.82c [symbolic]
  334. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete]
  335. // CHECK:STDOUT: %array_type.023: type = array_type %int_4, %Self.binding.as_type.49d [symbolic]
  336. // CHECK:STDOUT: %pattern_type.78a: type = pattern_type %array_type.023 [symbolic]
  337. // CHECK:STDOUT: %SelfNested.F.type: type = fn_type @SelfNested.F [concrete]
  338. // CHECK:STDOUT: %SelfNested.F: %SelfNested.F.type = struct_value () [concrete]
  339. // CHECK:STDOUT: %SelfNested.assoc_type: type = assoc_entity_type @SelfNested [concrete]
  340. // CHECK:STDOUT: %assoc0.beb: %SelfNested.assoc_type = assoc_entity element0, @SelfNested.%SelfNested.F.decl [concrete]
  341. // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [concrete]
  342. // CHECK:STDOUT: %SelfNested.impl_witness.eb9: <witness> = impl_witness @SelfNestedBadParam.%SelfNested.impl_witness_table [concrete]
  343. // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [concrete]
  344. // CHECK:STDOUT: %struct_type.x.y.871: type = struct_type {.x: %i32, .y: %i32} [concrete]
  345. // CHECK:STDOUT: %tuple.660: %tuple.type.24b = tuple_value (%ptr.4cd, %struct_type.x.y.871) [concrete]
  346. // CHECK:STDOUT: %tuple.type.a7d: type = tuple_type (%ptr.4cd, %struct_type.x.y.871) [concrete]
  347. // CHECK:STDOUT: %pattern_type.714: type = pattern_type %tuple.type.a7d [concrete]
  348. // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [concrete]
  349. // CHECK:STDOUT: %pattern_type.1f1: type = pattern_type %array_type.a41 [concrete]
  350. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete]
  351. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1 = struct_value () [concrete]
  352. // CHECK:STDOUT: %SelfNested.facet.182: %SelfNested.type = facet_value %SelfNestedBadParam, (%SelfNested.impl_witness.eb9) [concrete]
  353. // CHECK:STDOUT: %struct_type.x.y.a89: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [concrete]
  354. // CHECK:STDOUT: %tuple.bce: %tuple.type.24b = tuple_value (%ptr.4cd, %struct_type.x.y.a89) [concrete]
  355. // CHECK:STDOUT: %tuple.type.9c9: type = tuple_type (%ptr.4cd, %struct_type.x.y.a89) [concrete]
  356. // CHECK:STDOUT: %pattern_type.a5c: type = pattern_type %tuple.type.9c9 [concrete]
  357. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete]
  358. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2 = struct_value () [concrete]
  359. // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [concrete]
  360. // CHECK:STDOUT: %SelfNested.impl_witness.c55: <witness> = impl_witness @SelfNestedBadReturnType.%SelfNested.impl_witness_table [concrete]
  361. // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [concrete]
  362. // CHECK:STDOUT: %struct_type.x.y.ac5: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete]
  363. // CHECK:STDOUT: %tuple.034: %tuple.type.24b = tuple_value (%ptr.612, %struct_type.x.y.ac5) [concrete]
  364. // CHECK:STDOUT: %tuple.type.eb9: type = tuple_type (%ptr.612, %struct_type.x.y.ac5) [concrete]
  365. // CHECK:STDOUT: %pattern_type.23f: type = pattern_type %tuple.type.eb9 [concrete]
  366. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete]
  367. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1 = struct_value () [concrete]
  368. // CHECK:STDOUT: %SelfNested.facet.55d: %SelfNested.type = facet_value %SelfNestedBadReturnType, (%SelfNested.impl_witness.c55) [concrete]
  369. // CHECK:STDOUT: %array_type.126: type = array_type %int_4, %SelfNestedBadReturnType [concrete]
  370. // CHECK:STDOUT: %pattern_type.f56: type = pattern_type %array_type.126 [concrete]
  371. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete]
  372. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2 = struct_value () [concrete]
  373. // CHECK:STDOUT: }
  374. // CHECK:STDOUT:
  375. // CHECK:STDOUT: imports {
  376. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  377. // CHECK:STDOUT: .Bool = %Core.Bool
  378. // CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
  379. // CHECK:STDOUT: .Int = %Core.Int
  380. // CHECK:STDOUT: import Core//prelude
  381. // CHECK:STDOUT: import Core//prelude/...
  382. // CHECK:STDOUT: }
  383. // CHECK:STDOUT: %Core.Bool: %Bool.type = import_ref Core//prelude/parts/bool, Bool, loaded [concrete = constants.%Bool]
  384. // CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
  385. // CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
  386. // CHECK:STDOUT: }
  387. // CHECK:STDOUT:
  388. // CHECK:STDOUT: file {
  389. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  390. // CHECK:STDOUT: .Core = imports.%Core
  391. // CHECK:STDOUT: .I = %I.decl
  392. // CHECK:STDOUT: .NoF = %NoF.decl
  393. // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
  394. // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
  395. // CHECK:STDOUT: .FAlias = %FAlias.decl
  396. // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
  397. // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
  398. // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
  399. // CHECK:STDOUT: .J = %J.decl
  400. // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
  401. // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
  402. // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
  403. // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
  404. // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
  405. // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
  406. // CHECK:STDOUT: .SelfNested = %SelfNested.decl
  407. // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
  408. // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
  409. // CHECK:STDOUT: }
  410. // CHECK:STDOUT: %Core.import = import Core
  411. // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
  412. // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [concrete = constants.%NoF] {} {}
  413. // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [concrete = constants.%FNotFunction] {} {}
  414. // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [concrete = constants.%PossiblyF] {} {}
  415. // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [concrete = constants.%FAlias] {} {}
  416. // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [concrete = constants.%FExtraParam] {} {}
  417. // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [concrete = constants.%FExtraImplicitParam] {} {}
  418. // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [concrete = constants.%FExtraReturnType] {} {}
  419. // CHECK:STDOUT: %J.decl: type = interface_decl @J [concrete = constants.%J.type] {} {}
  420. // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [concrete = constants.%FMissingParam] {} {}
  421. // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [concrete = constants.%FMissingImplicitParam] {} {}
  422. // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [concrete = constants.%FMissingReturnType] {} {}
  423. // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [concrete = constants.%FDifferentParamType] {} {}
  424. // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType] {} {}
  425. // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [concrete = constants.%FDifferentReturnType] {} {}
  426. // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [concrete = constants.%SelfNested.type] {} {}
  427. // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [concrete = constants.%SelfNestedBadParam] {} {}
  428. // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType] {} {}
  429. // CHECK:STDOUT: }
  430. // CHECK:STDOUT:
  431. // CHECK:STDOUT: interface @I {
  432. // CHECK:STDOUT: %Self: %I.type = symbolic_binding Self, 0 [symbolic = constants.%Self.9f2]
  433. // CHECK:STDOUT: %I.F.decl: %I.F.type = fn_decl @I.F [concrete = constants.%I.F] {} {}
  434. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %I.F.decl [concrete = constants.%assoc0.82e]
  435. // CHECK:STDOUT:
  436. // CHECK:STDOUT: !members:
  437. // CHECK:STDOUT: .Self = %Self
  438. // CHECK:STDOUT: .F = %assoc0
  439. // CHECK:STDOUT: witness = (%I.F.decl)
  440. // CHECK:STDOUT:
  441. // CHECK:STDOUT: !requires:
  442. // CHECK:STDOUT: }
  443. // CHECK:STDOUT:
  444. // CHECK:STDOUT: interface @J {
  445. // CHECK:STDOUT: %Self: %J.type = symbolic_binding Self, 0 [symbolic = constants.%Self.dc6]
  446. // CHECK:STDOUT: %J.F.decl: %J.F.type = fn_decl @J.F [concrete = constants.%J.F] {
  447. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  448. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  449. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  450. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  451. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  452. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  453. // CHECK:STDOUT: } {
  454. // CHECK:STDOUT: %Bool.call.loc103_44: init type = call constants.%Bool() [concrete = bool]
  455. // CHECK:STDOUT: %.loc103_44.1: type = value_of_initializer %Bool.call.loc103_44 [concrete = bool]
  456. // CHECK:STDOUT: %.loc103_44.2: type = converted %Bool.call.loc103_44, %.loc103_44.1 [concrete = bool]
  457. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  458. // CHECK:STDOUT: %.loc103_26.1: type = splice_block %.loc103_26.3 [concrete = bool] {
  459. // CHECK:STDOUT: %Bool.call.loc103_26: init type = call constants.%Bool() [concrete = bool]
  460. // CHECK:STDOUT: %.loc103_26.2: type = value_of_initializer %Bool.call.loc103_26 [concrete = bool]
  461. // CHECK:STDOUT: %.loc103_26.3: type = converted %Bool.call.loc103_26, %.loc103_26.2 [concrete = bool]
  462. // CHECK:STDOUT: }
  463. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  464. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  465. // CHECK:STDOUT: %.loc103_35.1: type = splice_block %.loc103_35.3 [concrete = bool] {
  466. // CHECK:STDOUT: %Bool.call.loc103_35: init type = call constants.%Bool() [concrete = bool]
  467. // CHECK:STDOUT: %.loc103_35.2: type = value_of_initializer %Bool.call.loc103_35 [concrete = bool]
  468. // CHECK:STDOUT: %.loc103_35.3: type = converted %Bool.call.loc103_35, %.loc103_35.2 [concrete = bool]
  469. // CHECK:STDOUT: }
  470. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  471. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  472. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  473. // CHECK:STDOUT: }
  474. // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %J.F.decl [concrete = constants.%assoc0.922]
  475. // CHECK:STDOUT:
  476. // CHECK:STDOUT: !members:
  477. // CHECK:STDOUT: .Self = %Self
  478. // CHECK:STDOUT: .F = %assoc0
  479. // CHECK:STDOUT: witness = (%J.F.decl)
  480. // CHECK:STDOUT:
  481. // CHECK:STDOUT: !requires:
  482. // CHECK:STDOUT: }
  483. // CHECK:STDOUT:
  484. // CHECK:STDOUT: interface @SelfNested {
  485. // CHECK:STDOUT: %Self: %SelfNested.type = symbolic_binding Self, 0 [symbolic = constants.%Self.708]
  486. // CHECK:STDOUT: %SelfNested.F.decl: %SelfNested.F.type = fn_decl @SelfNested.F [concrete = constants.%SelfNested.F] {
  487. // CHECK:STDOUT: %x.patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.b78) = value_binding_pattern x [concrete]
  488. // CHECK:STDOUT: %x.param_patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.b78) = value_param_pattern %x.patt, call_param0 [concrete]
  489. // CHECK:STDOUT: %return.patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.78a) = return_slot_pattern [concrete]
  490. // CHECK:STDOUT: %return.param_patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.78a) = out_param_pattern %return.patt, call_param1 [concrete]
  491. // CHECK:STDOUT: } {
  492. // CHECK:STDOUT: %Self.ref.loc211_50: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.708)]
  493. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  494. // 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.49d)]
  495. // 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.49d)]
  496. // CHECK:STDOUT: %array_type.loc211_57.2: type = array_type %int_4, %.loc211_50 [symbolic = %array_type.loc211_57.1 (constants.%array_type.023)]
  497. // CHECK:STDOUT: %x.param: @SelfNested.F.%tuple.type (%tuple.type.82c) = value_param call_param0
  498. // CHECK:STDOUT: %.loc211_38.1: type = splice_block %.loc211_38.3 [symbolic = %tuple.type (constants.%tuple.type.82c)] {
  499. // CHECK:STDOUT: %Self.ref.loc211_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.708)]
  500. // 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.49d)]
  501. // 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.49d)]
  502. // CHECK:STDOUT: %ptr.loc211_16.2: type = ptr_type %.loc211_16 [symbolic = %ptr.loc211_16.1 (constants.%ptr.e7a)]
  503. // CHECK:STDOUT: %Self.ref.loc211_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.708)]
  504. // 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.49d)]
  505. // 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.49d)]
  506. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  507. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  508. // CHECK:STDOUT: %struct_type.x.y.loc211_37.2: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.49d), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.c4d)]
  509. // CHECK:STDOUT: %.loc211_38.2: %tuple.type.24b = tuple_literal (%ptr.loc211_16.2, %struct_type.x.y.loc211_37.2) [symbolic = %tuple (constants.%tuple.d1f)]
  510. // CHECK:STDOUT: %.loc211_38.3: type = converted %.loc211_38.2, constants.%tuple.type.82c [symbolic = %tuple.type (constants.%tuple.type.82c)]
  511. // CHECK:STDOUT: }
  512. // CHECK:STDOUT: %x: @SelfNested.F.%tuple.type (%tuple.type.82c) = value_binding x, %x.param
  513. // CHECK:STDOUT: %return.param: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.023) = out_param call_param1
  514. // CHECK:STDOUT: %return: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.023) = return_slot %return.param
  515. // CHECK:STDOUT: }
  516. // CHECK:STDOUT: %assoc0: %SelfNested.assoc_type = assoc_entity element0, %SelfNested.F.decl [concrete = constants.%assoc0.beb]
  517. // CHECK:STDOUT:
  518. // CHECK:STDOUT: !members:
  519. // CHECK:STDOUT: .Self = %Self
  520. // CHECK:STDOUT: .F = %assoc0
  521. // CHECK:STDOUT: witness = (%SelfNested.F.decl)
  522. // CHECK:STDOUT:
  523. // CHECK:STDOUT: !requires:
  524. // CHECK:STDOUT: }
  525. // CHECK:STDOUT:
  526. // CHECK:STDOUT: impl @NoF.as.I.impl: %Self.ref as %I.ref {
  527. // CHECK:STDOUT: !members:
  528. // CHECK:STDOUT: .F = <poisoned>
  529. // CHECK:STDOUT: witness = @NoF.%I.impl_witness
  530. // CHECK:STDOUT: }
  531. // CHECK:STDOUT:
  532. // CHECK:STDOUT: impl @FNotFunction.as.I.impl: %Self.ref as %I.ref {
  533. // CHECK:STDOUT: %F.decl: type = class_decl @F [concrete = constants.%F] {} {}
  534. // CHECK:STDOUT:
  535. // CHECK:STDOUT: !members:
  536. // CHECK:STDOUT: .F = %F.decl
  537. // CHECK:STDOUT: witness = @FNotFunction.%I.impl_witness
  538. // CHECK:STDOUT: }
  539. // CHECK:STDOUT:
  540. // CHECK:STDOUT: impl @FAlias.as.I.impl: %Self.ref as %I.ref {
  541. // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  542. // CHECK:STDOUT: %F: %PossiblyF.type = alias_binding F, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  543. // CHECK:STDOUT:
  544. // CHECK:STDOUT: !members:
  545. // CHECK:STDOUT: .PossiblyF = <poisoned>
  546. // CHECK:STDOUT: .F = %F
  547. // CHECK:STDOUT: witness = @FAlias.%I.impl_witness
  548. // CHECK:STDOUT: }
  549. // CHECK:STDOUT:
  550. // CHECK:STDOUT: impl @FExtraParam.as.I.impl: %Self.ref as %I.ref {
  551. // 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] {
  552. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  553. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  554. // CHECK:STDOUT: } {
  555. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  556. // CHECK:STDOUT: %.loc69_13.1: type = splice_block %.loc69_13.3 [concrete = bool] {
  557. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  558. // CHECK:STDOUT: %.loc69_13.2: type = value_of_initializer %Bool.call [concrete = bool]
  559. // CHECK:STDOUT: %.loc69_13.3: type = converted %Bool.call, %.loc69_13.2 [concrete = bool]
  560. // CHECK:STDOUT: }
  561. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  562. // CHECK:STDOUT: }
  563. // 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] {} {}
  564. // CHECK:STDOUT:
  565. // CHECK:STDOUT: !members:
  566. // CHECK:STDOUT: .F = %FExtraParam.as.I.impl.F.decl.loc69_18.1
  567. // CHECK:STDOUT: witness = @FExtraParam.%I.impl_witness
  568. // CHECK:STDOUT: }
  569. // CHECK:STDOUT:
  570. // CHECK:STDOUT: impl @FExtraImplicitParam.as.I.impl: %Self.ref as %I.ref {
  571. // 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] {
  572. // CHECK:STDOUT: %self.patt: %pattern_type.8ae = value_binding_pattern self [concrete]
  573. // CHECK:STDOUT: %self.param_patt: %pattern_type.8ae = value_param_pattern %self.patt, call_param0 [concrete]
  574. // CHECK:STDOUT: } {
  575. // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param call_param0
  576. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  577. // CHECK:STDOUT: %self: %FExtraImplicitParam = value_binding self, %self.param
  578. // CHECK:STDOUT: }
  579. // 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] {} {}
  580. // CHECK:STDOUT:
  581. // CHECK:STDOUT: !members:
  582. // CHECK:STDOUT: .F = %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1
  583. // CHECK:STDOUT: witness = @FExtraImplicitParam.%I.impl_witness
  584. // CHECK:STDOUT: }
  585. // CHECK:STDOUT:
  586. // CHECK:STDOUT: impl @FExtraReturnType.as.I.impl: %Self.ref as %I.ref {
  587. // 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] {
  588. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  589. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param0 [concrete]
  590. // CHECK:STDOUT: } {
  591. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  592. // CHECK:STDOUT: %.loc99_15.1: type = value_of_initializer %Bool.call [concrete = bool]
  593. // CHECK:STDOUT: %.loc99_15.2: type = converted %Bool.call, %.loc99_15.1 [concrete = bool]
  594. // CHECK:STDOUT: %return.param: ref bool = out_param call_param0
  595. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  596. // CHECK:STDOUT: }
  597. // CHECK:STDOUT:
  598. // CHECK:STDOUT: !members:
  599. // CHECK:STDOUT: .F = %FExtraReturnType.as.I.impl.F.decl
  600. // CHECK:STDOUT: witness = @FExtraReturnType.%I.impl_witness
  601. // CHECK:STDOUT: }
  602. // CHECK:STDOUT:
  603. // CHECK:STDOUT: impl @FMissingParam.as.J.impl: %Self.ref as %J.ref {
  604. // 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] {
  605. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  606. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  607. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  608. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  609. // CHECK:STDOUT: } {
  610. // CHECK:STDOUT: %Bool.call.loc117_27: init type = call constants.%Bool() [concrete = bool]
  611. // CHECK:STDOUT: %.loc117_27.1: type = value_of_initializer %Bool.call.loc117_27 [concrete = bool]
  612. // CHECK:STDOUT: %.loc117_27.2: type = converted %Bool.call.loc117_27, %.loc117_27.1 [concrete = bool]
  613. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  614. // CHECK:STDOUT: %.loc117_16.1: type = splice_block %.loc117_16.3 [concrete = bool] {
  615. // CHECK:STDOUT: %Bool.call.loc117_16: init type = call constants.%Bool() [concrete = bool]
  616. // CHECK:STDOUT: %.loc117_16.2: type = value_of_initializer %Bool.call.loc117_16 [concrete = bool]
  617. // CHECK:STDOUT: %.loc117_16.3: type = converted %Bool.call.loc117_16, %.loc117_16.2 [concrete = bool]
  618. // CHECK:STDOUT: }
  619. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  620. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  621. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  622. // CHECK:STDOUT: }
  623. // 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] {
  624. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  625. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  626. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  627. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  628. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  629. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  630. // CHECK:STDOUT: } {
  631. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  632. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  633. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  634. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  635. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  636. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  637. // CHECK:STDOUT: }
  638. // CHECK:STDOUT:
  639. // CHECK:STDOUT: !members:
  640. // CHECK:STDOUT: .F = %FMissingParam.as.J.impl.F.decl.loc117_31.1
  641. // CHECK:STDOUT: witness = @FMissingParam.%J.impl_witness
  642. // CHECK:STDOUT: }
  643. // CHECK:STDOUT:
  644. // CHECK:STDOUT: impl @FMissingImplicitParam.as.J.impl: %Self.ref as %J.ref {
  645. // 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] {
  646. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  647. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  648. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  649. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  650. // CHECK:STDOUT: } {
  651. // CHECK:STDOUT: %Bool.call.loc130_22: init type = call constants.%Bool() [concrete = bool]
  652. // CHECK:STDOUT: %.loc130_22.1: type = value_of_initializer %Bool.call.loc130_22 [concrete = bool]
  653. // CHECK:STDOUT: %.loc130_22.2: type = converted %Bool.call.loc130_22, %.loc130_22.1 [concrete = bool]
  654. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  655. // CHECK:STDOUT: %.loc130_13.1: type = splice_block %.loc130_13.3 [concrete = bool] {
  656. // CHECK:STDOUT: %Bool.call.loc130_13: init type = call constants.%Bool() [concrete = bool]
  657. // CHECK:STDOUT: %.loc130_13.2: type = value_of_initializer %Bool.call.loc130_13 [concrete = bool]
  658. // CHECK:STDOUT: %.loc130_13.3: type = converted %Bool.call.loc130_13, %.loc130_13.2 [concrete = bool]
  659. // CHECK:STDOUT: }
  660. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  661. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  662. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  663. // CHECK:STDOUT: }
  664. // 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] {
  665. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  666. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  667. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  668. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  669. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  670. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  671. // CHECK:STDOUT: } {
  672. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  673. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  674. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  675. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  676. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  677. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  678. // CHECK:STDOUT: }
  679. // CHECK:STDOUT:
  680. // CHECK:STDOUT: !members:
  681. // CHECK:STDOUT: .F = %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1
  682. // CHECK:STDOUT: witness = @FMissingImplicitParam.%J.impl_witness
  683. // CHECK:STDOUT: }
  684. // CHECK:STDOUT:
  685. // CHECK:STDOUT: impl @FMissingReturnType.as.J.impl: %Self.ref as %J.ref {
  686. // 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] {
  687. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  688. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  689. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  690. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  691. // CHECK:STDOUT: } {
  692. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  693. // CHECK:STDOUT: %.loc152_16.1: type = splice_block %.loc152_16.3 [concrete = bool] {
  694. // CHECK:STDOUT: %Bool.call.loc152_16: init type = call constants.%Bool() [concrete = bool]
  695. // CHECK:STDOUT: %.loc152_16.2: type = value_of_initializer %Bool.call.loc152_16 [concrete = bool]
  696. // CHECK:STDOUT: %.loc152_16.3: type = converted %Bool.call.loc152_16, %.loc152_16.2 [concrete = bool]
  697. // CHECK:STDOUT: }
  698. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  699. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  700. // CHECK:STDOUT: %.loc152_25.1: type = splice_block %.loc152_25.3 [concrete = bool] {
  701. // CHECK:STDOUT: %Bool.call.loc152_25: init type = call constants.%Bool() [concrete = bool]
  702. // CHECK:STDOUT: %.loc152_25.2: type = value_of_initializer %Bool.call.loc152_25 [concrete = bool]
  703. // CHECK:STDOUT: %.loc152_25.3: type = converted %Bool.call.loc152_25, %.loc152_25.2 [concrete = bool]
  704. // CHECK:STDOUT: }
  705. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  706. // CHECK:STDOUT: }
  707. // 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] {
  708. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  709. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  710. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  711. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  712. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  713. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  714. // CHECK:STDOUT: } {
  715. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  716. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  717. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  718. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  719. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  720. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  721. // CHECK:STDOUT: }
  722. // CHECK:STDOUT:
  723. // CHECK:STDOUT: !members:
  724. // CHECK:STDOUT: .F = %FMissingReturnType.as.J.impl.F.decl.loc152_30.1
  725. // CHECK:STDOUT: witness = @FMissingReturnType.%J.impl_witness
  726. // CHECK:STDOUT: }
  727. // CHECK:STDOUT:
  728. // CHECK:STDOUT: impl @FDifferentParamType.as.J.impl: %Self.ref as %J.ref {
  729. // 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] {
  730. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  731. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  732. // CHECK:STDOUT: %b.patt: %pattern_type.b90 = value_binding_pattern b [concrete]
  733. // CHECK:STDOUT: %b.param_patt: %pattern_type.b90 = value_param_pattern %b.patt, call_param1 [concrete]
  734. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  735. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  736. // CHECK:STDOUT: } {
  737. // CHECK:STDOUT: %Bool.call.loc171_34: init type = call constants.%Bool() [concrete = bool]
  738. // CHECK:STDOUT: %.loc171_34.1: type = value_of_initializer %Bool.call.loc171_34 [concrete = bool]
  739. // CHECK:STDOUT: %.loc171_34.2: type = converted %Bool.call.loc171_34, %.loc171_34.1 [concrete = bool]
  740. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  741. // CHECK:STDOUT: %.loc171_16.1: type = splice_block %.loc171_16.3 [concrete = bool] {
  742. // CHECK:STDOUT: %Bool.call.loc171_16: init type = call constants.%Bool() [concrete = bool]
  743. // CHECK:STDOUT: %.loc171_16.2: type = value_of_initializer %Bool.call.loc171_16 [concrete = bool]
  744. // CHECK:STDOUT: %.loc171_16.3: type = converted %Bool.call.loc171_16, %.loc171_16.2 [concrete = bool]
  745. // CHECK:STDOUT: }
  746. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  747. // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param call_param1
  748. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  749. // CHECK:STDOUT: %b: %FDifferentParamType = value_binding b, %b.param
  750. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  751. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  752. // CHECK:STDOUT: }
  753. // 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] {
  754. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  755. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  756. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  757. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  758. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  759. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  760. // CHECK:STDOUT: } {
  761. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  762. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  763. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  764. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  765. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  766. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  767. // CHECK:STDOUT: }
  768. // CHECK:STDOUT:
  769. // CHECK:STDOUT: !members:
  770. // CHECK:STDOUT: .F = %FDifferentParamType.as.J.impl.F.decl.loc171_38.1
  771. // CHECK:STDOUT: witness = @FDifferentParamType.%J.impl_witness
  772. // CHECK:STDOUT: }
  773. // CHECK:STDOUT:
  774. // CHECK:STDOUT: impl @FDifferentImplicitParamType.as.J.impl: %Self.ref as %J.ref {
  775. // 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] {
  776. // CHECK:STDOUT: %self.patt: %pattern_type.9cc = value_binding_pattern self [concrete]
  777. // CHECK:STDOUT: %self.param_patt: %pattern_type.9cc = value_param_pattern %self.patt, call_param0 [concrete]
  778. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  779. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  780. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  781. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  782. // CHECK:STDOUT: } {
  783. // CHECK:STDOUT: %Bool.call.loc184_34: init type = call constants.%Bool() [concrete = bool]
  784. // CHECK:STDOUT: %.loc184_34.1: type = value_of_initializer %Bool.call.loc184_34 [concrete = bool]
  785. // CHECK:STDOUT: %.loc184_34.2: type = converted %Bool.call.loc184_34, %.loc184_34.1 [concrete = bool]
  786. // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param call_param0
  787. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  788. // CHECK:STDOUT: %self: %FDifferentImplicitParamType = value_binding self, %self.param
  789. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  790. // CHECK:STDOUT: %.loc184_25.1: type = splice_block %.loc184_25.3 [concrete = bool] {
  791. // CHECK:STDOUT: %Bool.call.loc184_25: init type = call constants.%Bool() [concrete = bool]
  792. // CHECK:STDOUT: %.loc184_25.2: type = value_of_initializer %Bool.call.loc184_25 [concrete = bool]
  793. // CHECK:STDOUT: %.loc184_25.3: type = converted %Bool.call.loc184_25, %.loc184_25.2 [concrete = bool]
  794. // CHECK:STDOUT: }
  795. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  796. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  797. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  798. // CHECK:STDOUT: }
  799. // 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] {
  800. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  801. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  802. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  803. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  804. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  805. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  806. // CHECK:STDOUT: } {
  807. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  808. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  809. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  810. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  811. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  812. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  813. // CHECK:STDOUT: }
  814. // CHECK:STDOUT:
  815. // CHECK:STDOUT: !members:
  816. // CHECK:STDOUT: .F = %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1
  817. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%J.impl_witness
  818. // CHECK:STDOUT: }
  819. // CHECK:STDOUT:
  820. // CHECK:STDOUT: impl @FDifferentReturnType.as.J.impl: %Self.ref as %J.ref {
  821. // 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] {
  822. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  823. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  824. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  825. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  826. // CHECK:STDOUT: %return.patt: %pattern_type.8ee = return_slot_pattern [concrete]
  827. // CHECK:STDOUT: %return.param_patt: %pattern_type.8ee = out_param_pattern %return.patt, call_param2 [concrete]
  828. // CHECK:STDOUT: } {
  829. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  830. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  831. // CHECK:STDOUT: %.loc200_16.1: type = splice_block %.loc200_16.3 [concrete = bool] {
  832. // CHECK:STDOUT: %Bool.call.loc200_16: init type = call constants.%Bool() [concrete = bool]
  833. // CHECK:STDOUT: %.loc200_16.2: type = value_of_initializer %Bool.call.loc200_16 [concrete = bool]
  834. // CHECK:STDOUT: %.loc200_16.3: type = converted %Bool.call.loc200_16, %.loc200_16.2 [concrete = bool]
  835. // CHECK:STDOUT: }
  836. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  837. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  838. // CHECK:STDOUT: %.loc200_25.1: type = splice_block %.loc200_25.3 [concrete = bool] {
  839. // CHECK:STDOUT: %Bool.call.loc200_25: init type = call constants.%Bool() [concrete = bool]
  840. // CHECK:STDOUT: %.loc200_25.2: type = value_of_initializer %Bool.call.loc200_25 [concrete = bool]
  841. // CHECK:STDOUT: %.loc200_25.3: type = converted %Bool.call.loc200_25, %.loc200_25.2 [concrete = bool]
  842. // CHECK:STDOUT: }
  843. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  844. // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param call_param2
  845. // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
  846. // CHECK:STDOUT: }
  847. // 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] {
  848. // CHECK:STDOUT: %self.patt: %pattern_type.831 = value_binding_pattern self [concrete]
  849. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  850. // CHECK:STDOUT: %b.patt: %pattern_type.831 = value_binding_pattern b [concrete]
  851. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  852. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  853. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  854. // CHECK:STDOUT: } {
  855. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  856. // CHECK:STDOUT: %self: bool = value_binding self, %self.param
  857. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  858. // CHECK:STDOUT: %b: bool = value_binding b, %b.param
  859. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  860. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  861. // CHECK:STDOUT: }
  862. // CHECK:STDOUT:
  863. // CHECK:STDOUT: !members:
  864. // CHECK:STDOUT: .F = %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1
  865. // CHECK:STDOUT: witness = @FDifferentReturnType.%J.impl_witness
  866. // CHECK:STDOUT: }
  867. // CHECK:STDOUT:
  868. // CHECK:STDOUT: impl @SelfNestedBadParam.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  869. // 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] {
  870. // CHECK:STDOUT: %x.patt: %pattern_type.714 = value_binding_pattern x [concrete]
  871. // CHECK:STDOUT: %x.param_patt: %pattern_type.714 = value_param_pattern %x.patt, call_param0 [concrete]
  872. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  873. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  874. // CHECK:STDOUT: } {
  875. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_65: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  876. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  877. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref.loc223_65 [concrete = constants.%array_type.a41]
  878. // CHECK:STDOUT: %x.param: %tuple.type.a7d = value_param call_param0
  879. // CHECK:STDOUT: %.loc223_53.1: type = splice_block %.loc223_53.3 [concrete = constants.%tuple.type.a7d] {
  880. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  881. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam.ref.loc223_14 [concrete = constants.%ptr.4cd]
  882. // CHECK:STDOUT: %int_32.loc223_40: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  883. // CHECK:STDOUT: %i32.loc223_40: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  884. // CHECK:STDOUT: %int_32.loc223_49: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  885. // CHECK:STDOUT: %i32.loc223_49: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  886. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [concrete = constants.%struct_type.x.y.871]
  887. // CHECK:STDOUT: %.loc223_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y) [concrete = constants.%tuple.660]
  888. // CHECK:STDOUT: %.loc223_53.3: type = converted %.loc223_53.2, constants.%tuple.type.a7d [concrete = constants.%tuple.type.a7d]
  889. // CHECK:STDOUT: }
  890. // CHECK:STDOUT: %x: %tuple.type.a7d = value_binding x, %x.param
  891. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  892. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  893. // CHECK:STDOUT: }
  894. // 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] {
  895. // CHECK:STDOUT: %x.patt: %pattern_type.a5c = value_binding_pattern x [concrete]
  896. // CHECK:STDOUT: %x.param_patt: %pattern_type.a5c = value_param_pattern %x.patt, call_param0 [concrete]
  897. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  898. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  899. // CHECK:STDOUT: } {
  900. // CHECK:STDOUT: %x.param: %tuple.type.9c9 = value_param call_param0
  901. // CHECK:STDOUT: %x: %tuple.type.9c9 = value_binding x, %x.param
  902. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  903. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  904. // CHECK:STDOUT: }
  905. // CHECK:STDOUT:
  906. // CHECK:STDOUT: !members:
  907. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  908. // CHECK:STDOUT: .F = %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1
  909. // CHECK:STDOUT: witness = @SelfNestedBadParam.%SelfNested.impl_witness
  910. // CHECK:STDOUT: }
  911. // CHECK:STDOUT:
  912. // CHECK:STDOUT: impl @SelfNestedBadReturnType.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  913. // 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] {
  914. // CHECK:STDOUT: %x.patt: %pattern_type.23f = value_binding_pattern x [concrete]
  915. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  916. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  917. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  918. // CHECK:STDOUT: } {
  919. // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  920. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  921. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref [concrete = constants.%array_type.a41]
  922. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  923. // CHECK:STDOUT: %.loc239_78.1: type = splice_block %.loc239_78.3 [concrete = constants.%tuple.type.eb9] {
  924. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  925. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType.ref.loc239_14 [concrete = constants.%ptr.612]
  926. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  927. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  928. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  929. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete = constants.%struct_type.x.y.ac5]
  930. // CHECK:STDOUT: %.loc239_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y) [concrete = constants.%tuple.034]
  931. // CHECK:STDOUT: %.loc239_78.3: type = converted %.loc239_78.2, constants.%tuple.type.eb9 [concrete = constants.%tuple.type.eb9]
  932. // CHECK:STDOUT: }
  933. // CHECK:STDOUT: %x: %tuple.type.eb9 = value_binding x, %x.param
  934. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  935. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  936. // CHECK:STDOUT: }
  937. // 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] {
  938. // CHECK:STDOUT: %x.patt: %pattern_type.23f = value_binding_pattern x [concrete]
  939. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  940. // CHECK:STDOUT: %return.patt: %pattern_type.f56 = return_slot_pattern [concrete]
  941. // CHECK:STDOUT: %return.param_patt: %pattern_type.f56 = out_param_pattern %return.patt, call_param1 [concrete]
  942. // CHECK:STDOUT: } {
  943. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  944. // CHECK:STDOUT: %x: %tuple.type.eb9 = value_binding x, %x.param
  945. // CHECK:STDOUT: %return.param: ref %array_type.126 = out_param call_param1
  946. // CHECK:STDOUT: %return: ref %array_type.126 = return_slot %return.param
  947. // CHECK:STDOUT: }
  948. // CHECK:STDOUT:
  949. // CHECK:STDOUT: !members:
  950. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  951. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  952. // CHECK:STDOUT: .F = %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1
  953. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%SelfNested.impl_witness
  954. // CHECK:STDOUT: }
  955. // CHECK:STDOUT:
  956. // CHECK:STDOUT: class @NoF {
  957. // CHECK:STDOUT: impl_decl @NoF.as.I.impl [concrete] {} {
  958. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
  959. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  960. // CHECK:STDOUT: }
  961. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @NoF.as.I.impl [concrete]
  962. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.6bf]
  963. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  964. // CHECK:STDOUT: complete_type_witness = %complete_type
  965. // CHECK:STDOUT:
  966. // CHECK:STDOUT: !members:
  967. // CHECK:STDOUT: .Self = constants.%NoF
  968. // CHECK:STDOUT: .I = <poisoned>
  969. // CHECK:STDOUT: }
  970. // CHECK:STDOUT:
  971. // CHECK:STDOUT: class @FNotFunction {
  972. // CHECK:STDOUT: impl_decl @FNotFunction.as.I.impl [concrete] {} {
  973. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
  974. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  975. // CHECK:STDOUT: }
  976. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FNotFunction.as.I.impl [concrete]
  977. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.aac]
  978. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  979. // CHECK:STDOUT: complete_type_witness = %complete_type
  980. // CHECK:STDOUT:
  981. // CHECK:STDOUT: !members:
  982. // CHECK:STDOUT: .Self = constants.%FNotFunction
  983. // CHECK:STDOUT: .I = <poisoned>
  984. // CHECK:STDOUT: }
  985. // CHECK:STDOUT:
  986. // CHECK:STDOUT: class @F;
  987. // CHECK:STDOUT:
  988. // CHECK:STDOUT: class @FAlias {
  989. // CHECK:STDOUT: impl_decl @FAlias.as.I.impl [concrete] {} {
  990. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
  991. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  992. // CHECK:STDOUT: }
  993. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FAlias.as.I.impl [concrete]
  994. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.bfe]
  995. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  996. // CHECK:STDOUT: complete_type_witness = %complete_type
  997. // CHECK:STDOUT:
  998. // CHECK:STDOUT: !members:
  999. // CHECK:STDOUT: .Self = constants.%FAlias
  1000. // CHECK:STDOUT: .I = <poisoned>
  1001. // CHECK:STDOUT: .PossiblyF = <poisoned>
  1002. // CHECK:STDOUT: }
  1003. // CHECK:STDOUT:
  1004. // CHECK:STDOUT: class @FExtraParam {
  1005. // CHECK:STDOUT: impl_decl @FExtraParam.as.I.impl [concrete] {} {
  1006. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
  1007. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1008. // CHECK:STDOUT: }
  1009. // 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]
  1010. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.4a4]
  1011. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1012. // CHECK:STDOUT: complete_type_witness = %complete_type
  1013. // CHECK:STDOUT:
  1014. // CHECK:STDOUT: !members:
  1015. // CHECK:STDOUT: .Self = constants.%FExtraParam
  1016. // CHECK:STDOUT: .I = <poisoned>
  1017. // CHECK:STDOUT: }
  1018. // CHECK:STDOUT:
  1019. // CHECK:STDOUT: class @FExtraImplicitParam {
  1020. // CHECK:STDOUT: impl_decl @FExtraImplicitParam.as.I.impl [concrete] {} {
  1021. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  1022. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1023. // CHECK:STDOUT: }
  1024. // 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]
  1025. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.c03]
  1026. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1027. // CHECK:STDOUT: complete_type_witness = %complete_type
  1028. // CHECK:STDOUT:
  1029. // CHECK:STDOUT: !members:
  1030. // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
  1031. // CHECK:STDOUT: .I = <poisoned>
  1032. // CHECK:STDOUT: }
  1033. // CHECK:STDOUT:
  1034. // CHECK:STDOUT: class @FExtraReturnType {
  1035. // CHECK:STDOUT: impl_decl @FExtraReturnType.as.I.impl [concrete] {} {
  1036. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
  1037. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1038. // CHECK:STDOUT: }
  1039. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FExtraReturnType.as.I.impl [concrete]
  1040. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.8ff]
  1041. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1042. // CHECK:STDOUT: complete_type_witness = %complete_type
  1043. // CHECK:STDOUT:
  1044. // CHECK:STDOUT: !members:
  1045. // CHECK:STDOUT: .Self = constants.%FExtraReturnType
  1046. // CHECK:STDOUT: .I = <poisoned>
  1047. // CHECK:STDOUT: }
  1048. // CHECK:STDOUT:
  1049. // CHECK:STDOUT: class @FMissingParam {
  1050. // CHECK:STDOUT: impl_decl @FMissingParam.as.J.impl [concrete] {} {
  1051. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
  1052. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1053. // CHECK:STDOUT: }
  1054. // 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]
  1055. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.6a1]
  1056. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1057. // CHECK:STDOUT: complete_type_witness = %complete_type
  1058. // CHECK:STDOUT:
  1059. // CHECK:STDOUT: !members:
  1060. // CHECK:STDOUT: .Self = constants.%FMissingParam
  1061. // CHECK:STDOUT: .J = <poisoned>
  1062. // CHECK:STDOUT: }
  1063. // CHECK:STDOUT:
  1064. // CHECK:STDOUT: class @FMissingImplicitParam {
  1065. // CHECK:STDOUT: impl_decl @FMissingImplicitParam.as.J.impl [concrete] {} {
  1066. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
  1067. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1068. // CHECK:STDOUT: }
  1069. // 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]
  1070. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5f7]
  1071. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1072. // CHECK:STDOUT: complete_type_witness = %complete_type
  1073. // CHECK:STDOUT:
  1074. // CHECK:STDOUT: !members:
  1075. // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
  1076. // CHECK:STDOUT: .J = <poisoned>
  1077. // CHECK:STDOUT: }
  1078. // CHECK:STDOUT:
  1079. // CHECK:STDOUT: class @FMissingReturnType {
  1080. // CHECK:STDOUT: impl_decl @FMissingReturnType.as.J.impl [concrete] {} {
  1081. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
  1082. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1083. // CHECK:STDOUT: }
  1084. // 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]
  1085. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.901]
  1086. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1087. // CHECK:STDOUT: complete_type_witness = %complete_type
  1088. // CHECK:STDOUT:
  1089. // CHECK:STDOUT: !members:
  1090. // CHECK:STDOUT: .Self = constants.%FMissingReturnType
  1091. // CHECK:STDOUT: .J = <poisoned>
  1092. // CHECK:STDOUT: }
  1093. // CHECK:STDOUT:
  1094. // CHECK:STDOUT: class @FDifferentParamType {
  1095. // CHECK:STDOUT: impl_decl @FDifferentParamType.as.J.impl [concrete] {} {
  1096. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  1097. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1098. // CHECK:STDOUT: }
  1099. // 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]
  1100. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.9c0]
  1101. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1102. // CHECK:STDOUT: complete_type_witness = %complete_type
  1103. // CHECK:STDOUT:
  1104. // CHECK:STDOUT: !members:
  1105. // CHECK:STDOUT: .Self = constants.%FDifferentParamType
  1106. // CHECK:STDOUT: .J = <poisoned>
  1107. // CHECK:STDOUT: }
  1108. // CHECK:STDOUT:
  1109. // CHECK:STDOUT: class @FDifferentImplicitParamType {
  1110. // CHECK:STDOUT: impl_decl @FDifferentImplicitParamType.as.J.impl [concrete] {} {
  1111. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1112. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1113. // CHECK:STDOUT: }
  1114. // 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]
  1115. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5b4]
  1116. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1117. // CHECK:STDOUT: complete_type_witness = %complete_type
  1118. // CHECK:STDOUT:
  1119. // CHECK:STDOUT: !members:
  1120. // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
  1121. // CHECK:STDOUT: .J = <poisoned>
  1122. // CHECK:STDOUT: }
  1123. // CHECK:STDOUT:
  1124. // CHECK:STDOUT: class @FDifferentReturnType {
  1125. // CHECK:STDOUT: impl_decl @FDifferentReturnType.as.J.impl [concrete] {} {
  1126. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1127. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1128. // CHECK:STDOUT: }
  1129. // 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]
  1130. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.bca]
  1131. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1132. // CHECK:STDOUT: complete_type_witness = %complete_type
  1133. // CHECK:STDOUT:
  1134. // CHECK:STDOUT: !members:
  1135. // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
  1136. // CHECK:STDOUT: .J = <poisoned>
  1137. // CHECK:STDOUT: }
  1138. // CHECK:STDOUT:
  1139. // CHECK:STDOUT: class @SelfNestedBadParam {
  1140. // CHECK:STDOUT: impl_decl @SelfNestedBadParam.as.SelfNested.impl [concrete] {} {
  1141. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
  1142. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1143. // CHECK:STDOUT: }
  1144. // 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]
  1145. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.eb9]
  1146. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1147. // CHECK:STDOUT: complete_type_witness = %complete_type
  1148. // CHECK:STDOUT:
  1149. // CHECK:STDOUT: !members:
  1150. // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
  1151. // CHECK:STDOUT: .SelfNested = <poisoned>
  1152. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1153. // CHECK:STDOUT: }
  1154. // CHECK:STDOUT:
  1155. // CHECK:STDOUT: class @SelfNestedBadReturnType {
  1156. // CHECK:STDOUT: impl_decl @SelfNestedBadReturnType.as.SelfNested.impl [concrete] {} {
  1157. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
  1158. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1159. // CHECK:STDOUT: }
  1160. // 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]
  1161. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.c55]
  1162. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1163. // CHECK:STDOUT: complete_type_witness = %complete_type
  1164. // CHECK:STDOUT:
  1165. // CHECK:STDOUT: !members:
  1166. // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
  1167. // CHECK:STDOUT: .SelfNested = <poisoned>
  1168. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  1169. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1170. // CHECK:STDOUT: }
  1171. // CHECK:STDOUT:
  1172. // CHECK:STDOUT: generic fn @I.F(@I.%Self: %I.type) {
  1173. // CHECK:STDOUT: fn();
  1174. // CHECK:STDOUT: }
  1175. // CHECK:STDOUT:
  1176. // CHECK:STDOUT: fn @PossiblyF();
  1177. // CHECK:STDOUT:
  1178. // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.1(%b.param: bool);
  1179. // CHECK:STDOUT:
  1180. // 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] {
  1181. // CHECK:STDOUT: !entry:
  1182. // 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]
  1183. // CHECK:STDOUT: return
  1184. // CHECK:STDOUT: }
  1185. // CHECK:STDOUT:
  1186. // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.1(%self.param: %FExtraImplicitParam);
  1187. // CHECK:STDOUT:
  1188. // 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] {
  1189. // CHECK:STDOUT: !entry:
  1190. // 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]
  1191. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.call: init %empty_tuple.type = call %F.ref(<error>)
  1192. // CHECK:STDOUT: return
  1193. // CHECK:STDOUT: }
  1194. // CHECK:STDOUT:
  1195. // CHECK:STDOUT: fn @FExtraReturnType.as.I.impl.F() -> bool;
  1196. // CHECK:STDOUT:
  1197. // CHECK:STDOUT: generic fn @J.F(@J.%Self: %J.type) {
  1198. // CHECK:STDOUT: fn(%self.param: bool, %b.param: bool) -> bool;
  1199. // CHECK:STDOUT: }
  1200. // CHECK:STDOUT:
  1201. // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.1(%self.param: bool) -> bool;
  1202. // CHECK:STDOUT:
  1203. // 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] {
  1204. // CHECK:STDOUT: !entry:
  1205. // 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]
  1206. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1207. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1208. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1209. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1210. // CHECK:STDOUT: return <error> to %return
  1211. // CHECK:STDOUT: }
  1212. // CHECK:STDOUT:
  1213. // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.1(%b.param: bool) -> bool;
  1214. // CHECK:STDOUT:
  1215. // 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] {
  1216. // CHECK:STDOUT: !entry:
  1217. // 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]
  1218. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1219. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1220. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1221. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.ref)
  1222. // CHECK:STDOUT: return %FMissingImplicitParam.as.J.impl.F.call to %return
  1223. // CHECK:STDOUT: }
  1224. // CHECK:STDOUT:
  1225. // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.1(%self.param: bool, %b.param: bool);
  1226. // CHECK:STDOUT:
  1227. // 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] {
  1228. // CHECK:STDOUT: !entry:
  1229. // 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]
  1230. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1231. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1232. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1233. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1234. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
  1235. // CHECK:STDOUT: %.loc152: bool = converted %FMissingReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1236. // CHECK:STDOUT: return <error> to %return
  1237. // CHECK:STDOUT: }
  1238. // CHECK:STDOUT:
  1239. // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.1(%self.param: bool, %b.param: %FDifferentParamType) -> bool;
  1240. // CHECK:STDOUT:
  1241. // 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] {
  1242. // CHECK:STDOUT: !entry:
  1243. // 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]
  1244. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1245. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1246. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1247. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1248. // CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.ref, <error> [concrete = <error>]
  1249. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.ref, <error>)
  1250. // CHECK:STDOUT: return %FDifferentParamType.as.J.impl.F.call to %return
  1251. // CHECK:STDOUT: }
  1252. // CHECK:STDOUT:
  1253. // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1(%self.param: %FDifferentImplicitParamType, %b.param: bool) -> bool;
  1254. // CHECK:STDOUT:
  1255. // 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] {
  1256. // CHECK:STDOUT: !entry:
  1257. // 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]
  1258. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1259. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1260. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1261. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1262. // CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.ref, <error> [concrete = <error>]
  1263. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.ref)
  1264. // CHECK:STDOUT: return %FDifferentImplicitParamType.as.J.impl.F.call to %return
  1265. // CHECK:STDOUT: }
  1266. // CHECK:STDOUT:
  1267. // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.1(%self.param: bool, %b.param: bool) -> %return.param: %FDifferentReturnType;
  1268. // CHECK:STDOUT:
  1269. // 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] {
  1270. // CHECK:STDOUT: !entry:
  1271. // 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]
  1272. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1273. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1274. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1275. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1276. // CHECK:STDOUT: %.loc200_38.1: ref %FDifferentReturnType = temporary_storage
  1277. // 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
  1278. // CHECK:STDOUT: %.loc200_38.2: bool = converted %FDifferentReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1279. // CHECK:STDOUT: return <error> to %return
  1280. // CHECK:STDOUT: }
  1281. // CHECK:STDOUT:
  1282. // CHECK:STDOUT: generic fn @SelfNested.F(@SelfNested.%Self: %SelfNested.type) {
  1283. // CHECK:STDOUT: %Self: %SelfNested.type = symbolic_binding Self, 0 [symbolic = %Self (constants.%Self.708)]
  1284. // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 0, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.49d)]
  1285. // CHECK:STDOUT: %ptr.loc211_16.1: type = ptr_type %Self.binding.as_type [symbolic = %ptr.loc211_16.1 (constants.%ptr.e7a)]
  1286. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.49d), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.c4d)]
  1287. // CHECK:STDOUT: %tuple: %tuple.type.24b = tuple_value (%ptr.loc211_16.1, %struct_type.x.y.loc211_37.1) [symbolic = %tuple (constants.%tuple.d1f)]
  1288. // CHECK:STDOUT: %tuple.type: type = tuple_type (%ptr.loc211_16.1, %struct_type.x.y.loc211_37.1) [symbolic = %tuple.type (constants.%tuple.type.82c)]
  1289. // CHECK:STDOUT: %pattern_type.loc211_8: type = pattern_type %tuple.type [symbolic = %pattern_type.loc211_8 (constants.%pattern_type.b78)]
  1290. // 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.023)]
  1291. // CHECK:STDOUT: %pattern_type.loc211_41: type = pattern_type %array_type.loc211_57.1 [symbolic = %pattern_type.loc211_41 (constants.%pattern_type.78a)]
  1292. // CHECK:STDOUT:
  1293. // CHECK:STDOUT: fn(%x.param: @SelfNested.F.%tuple.type (%tuple.type.82c)) -> @SelfNested.F.%array_type.loc211_57.1 (%array_type.023);
  1294. // CHECK:STDOUT: }
  1295. // CHECK:STDOUT:
  1296. // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1(%x.param: %tuple.type.a7d) -> %return.param: %array_type.a41;
  1297. // CHECK:STDOUT:
  1298. // 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] {
  1299. // CHECK:STDOUT: !entry:
  1300. // 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]
  1301. // CHECK:STDOUT: %x.ref: %tuple.type.9c9 = name_ref x, %x.param
  1302. // CHECK:STDOUT: %return.ref: ref %array_type.a41 = name_ref <return slot>, %return.param
  1303. // CHECK:STDOUT: %.loc211_41: ref %array_type.a41 = splice_block %return {}
  1304. // CHECK:STDOUT: %tuple.elem0: %ptr.4cd = tuple_access %x.ref, element0
  1305. // CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.a89 = tuple_access %x.ref, element1
  1306. // CHECK:STDOUT: %.loc211_9.1: %SelfNestedBadParam = struct_access %tuple.elem1, element0
  1307. // CHECK:STDOUT: %.loc211_9.2: %i32 = converted %.loc211_9.1, <error> [concrete = <error>]
  1308. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(<error>) to %.loc211_41
  1309. // CHECK:STDOUT: return %SelfNestedBadParam.as.SelfNested.impl.F.call to %return
  1310. // CHECK:STDOUT: }
  1311. // CHECK:STDOUT:
  1312. // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1(%x.param: %tuple.type.eb9) -> %return.param: %array_type.a41;
  1313. // CHECK:STDOUT:
  1314. // 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] {
  1315. // CHECK:STDOUT: !entry:
  1316. // 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]
  1317. // CHECK:STDOUT: %x.ref: %tuple.type.eb9 = name_ref x, %x.param
  1318. // CHECK:STDOUT: %return.ref: ref %array_type.126 = name_ref <return slot>, %return.param
  1319. // CHECK:STDOUT: %.loc239_112.1: ref %array_type.a41 = temporary_storage
  1320. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(%x.ref) to %.loc239_112.1
  1321. // CHECK:STDOUT: %.loc239_112.2: %array_type.126 = converted %SelfNestedBadReturnType.as.SelfNested.impl.F.call, <error> [concrete = <error>]
  1322. // CHECK:STDOUT: return <error> to %return
  1323. // CHECK:STDOUT: }
  1324. // CHECK:STDOUT:
  1325. // CHECK:STDOUT: specific @I.F(constants.%Self.9f2) {}
  1326. // CHECK:STDOUT:
  1327. // CHECK:STDOUT: specific @I.F(constants.%I.facet.888) {}
  1328. // CHECK:STDOUT:
  1329. // CHECK:STDOUT: specific @I.F(constants.%I.facet.242) {}
  1330. // CHECK:STDOUT:
  1331. // CHECK:STDOUT: specific @I.F(constants.%I.facet.d1c) {}
  1332. // CHECK:STDOUT:
  1333. // CHECK:STDOUT: specific @J.F(constants.%Self.dc6) {}
  1334. // CHECK:STDOUT:
  1335. // CHECK:STDOUT: specific @J.F(constants.%J.facet.b0a) {}
  1336. // CHECK:STDOUT:
  1337. // CHECK:STDOUT: specific @J.F(constants.%J.facet.2cb) {}
  1338. // CHECK:STDOUT:
  1339. // CHECK:STDOUT: specific @J.F(constants.%J.facet.92c) {}
  1340. // CHECK:STDOUT:
  1341. // CHECK:STDOUT: specific @J.F(constants.%J.facet.bad) {}
  1342. // CHECK:STDOUT:
  1343. // CHECK:STDOUT: specific @J.F(constants.%J.facet.923) {}
  1344. // CHECK:STDOUT:
  1345. // CHECK:STDOUT: specific @J.F(constants.%J.facet.a25) {}
  1346. // CHECK:STDOUT:
  1347. // CHECK:STDOUT: specific @SelfNested.F(constants.%Self.708) {
  1348. // CHECK:STDOUT: %Self => constants.%Self.708
  1349. // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.49d
  1350. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.e7a
  1351. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.c4d
  1352. // CHECK:STDOUT: %tuple => constants.%tuple.d1f
  1353. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.82c
  1354. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.b78
  1355. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.023
  1356. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.78a
  1357. // CHECK:STDOUT: }
  1358. // CHECK:STDOUT:
  1359. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.182) {
  1360. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.182
  1361. // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadParam
  1362. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.4cd
  1363. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a89
  1364. // CHECK:STDOUT: %tuple => constants.%tuple.bce
  1365. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.9c9
  1366. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.a5c
  1367. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.a41
  1368. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.1f1
  1369. // CHECK:STDOUT: }
  1370. // CHECK:STDOUT:
  1371. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.55d) {
  1372. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.55d
  1373. // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadReturnType
  1374. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.612
  1375. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.ac5
  1376. // CHECK:STDOUT: %tuple => constants.%tuple.034
  1377. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.eb9
  1378. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.23f
  1379. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.126
  1380. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.f56
  1381. // CHECK:STDOUT: }
  1382. // CHECK:STDOUT: