fail_impl_bad_assoc_fn.carbon 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387
  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.7ee: %I.type = bind_symbolic_name 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.bf6: %J.type = bind_symbolic_name 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.3de: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic]
  323. // CHECK:STDOUT: %Self.binding.as_type.9fa: type = symbolic_binding_type Self, 0, %Self.3de [symbolic]
  324. // CHECK:STDOUT: %ptr.7fb: type = ptr_type %Self.binding.as_type.9fa [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.a78: type = struct_type {.x: %Self.binding.as_type.9fa, .y: %i32} [symbolic]
  330. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
  331. // CHECK:STDOUT: %tuple.type.bf8: type = tuple_type (%ptr.7fb, %struct_type.x.y.a78) [symbolic]
  332. // CHECK:STDOUT: %pattern_type.daf: type = pattern_type %tuple.type.bf8 [symbolic]
  333. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete]
  334. // CHECK:STDOUT: %array_type.fe2: type = array_type %int_4, %Self.binding.as_type.9fa [symbolic]
  335. // CHECK:STDOUT: %pattern_type.285: type = pattern_type %array_type.fe2 [symbolic]
  336. // CHECK:STDOUT: %SelfNested.F.type: type = fn_type @SelfNested.F [concrete]
  337. // CHECK:STDOUT: %SelfNested.F: %SelfNested.F.type = struct_value () [concrete]
  338. // CHECK:STDOUT: %SelfNested.assoc_type: type = assoc_entity_type @SelfNested [concrete]
  339. // CHECK:STDOUT: %assoc0.beb: %SelfNested.assoc_type = assoc_entity element0, @SelfNested.%SelfNested.F.decl [concrete]
  340. // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [concrete]
  341. // CHECK:STDOUT: %SelfNested.impl_witness.eb9: <witness> = impl_witness @SelfNestedBadParam.%SelfNested.impl_witness_table [concrete]
  342. // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [concrete]
  343. // CHECK:STDOUT: %struct_type.x.y.871: type = struct_type {.x: %i32, .y: %i32} [concrete]
  344. // CHECK:STDOUT: %tuple.type.a7d: type = tuple_type (%ptr.4cd, %struct_type.x.y.871) [concrete]
  345. // CHECK:STDOUT: %pattern_type.714: type = pattern_type %tuple.type.a7d [concrete]
  346. // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [concrete]
  347. // CHECK:STDOUT: %pattern_type.1f1: type = pattern_type %array_type.a41 [concrete]
  348. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete]
  349. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.1 = struct_value () [concrete]
  350. // CHECK:STDOUT: %SelfNested.facet.182: %SelfNested.type = facet_value %SelfNestedBadParam, (%SelfNested.impl_witness.eb9) [concrete]
  351. // CHECK:STDOUT: %struct_type.x.y.a89: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [concrete]
  352. // CHECK:STDOUT: %tuple.type.9c9: type = tuple_type (%ptr.4cd, %struct_type.x.y.a89) [concrete]
  353. // CHECK:STDOUT: %pattern_type.a5c: type = pattern_type %tuple.type.9c9 [concrete]
  354. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete]
  355. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.72ff49.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.56b7c1.2 = struct_value () [concrete]
  356. // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [concrete]
  357. // CHECK:STDOUT: %SelfNested.impl_witness.c55: <witness> = impl_witness @SelfNestedBadReturnType.%SelfNested.impl_witness_table [concrete]
  358. // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [concrete]
  359. // CHECK:STDOUT: %struct_type.x.y.ac5: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete]
  360. // CHECK:STDOUT: %tuple.type.eb9: type = tuple_type (%ptr.612, %struct_type.x.y.ac5) [concrete]
  361. // CHECK:STDOUT: %pattern_type.23f: type = pattern_type %tuple.type.eb9 [concrete]
  362. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete]
  363. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.1 = struct_value () [concrete]
  364. // CHECK:STDOUT: %SelfNested.facet.55d: %SelfNested.type = facet_value %SelfNestedBadReturnType, (%SelfNested.impl_witness.c55) [concrete]
  365. // CHECK:STDOUT: %array_type.126: type = array_type %int_4, %SelfNestedBadReturnType [concrete]
  366. // CHECK:STDOUT: %pattern_type.f56: type = pattern_type %array_type.126 [concrete]
  367. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete]
  368. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.abc7a8.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.054b04.2 = struct_value () [concrete]
  369. // CHECK:STDOUT: }
  370. // CHECK:STDOUT:
  371. // CHECK:STDOUT: imports {
  372. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  373. // CHECK:STDOUT: .Bool = %Core.Bool
  374. // CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
  375. // CHECK:STDOUT: .Int = %Core.Int
  376. // CHECK:STDOUT: import Core//prelude
  377. // CHECK:STDOUT: import Core//prelude/...
  378. // CHECK:STDOUT: }
  379. // CHECK:STDOUT: %Core.Bool: %Bool.type = import_ref Core//prelude/parts/bool, Bool, loaded [concrete = constants.%Bool]
  380. // CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
  381. // CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
  382. // CHECK:STDOUT: }
  383. // CHECK:STDOUT:
  384. // CHECK:STDOUT: file {
  385. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  386. // CHECK:STDOUT: .Core = imports.%Core
  387. // CHECK:STDOUT: .I = %I.decl
  388. // CHECK:STDOUT: .NoF = %NoF.decl
  389. // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
  390. // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
  391. // CHECK:STDOUT: .FAlias = %FAlias.decl
  392. // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
  393. // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
  394. // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
  395. // CHECK:STDOUT: .J = %J.decl
  396. // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
  397. // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
  398. // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
  399. // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
  400. // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
  401. // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
  402. // CHECK:STDOUT: .SelfNested = %SelfNested.decl
  403. // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
  404. // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
  405. // CHECK:STDOUT: }
  406. // CHECK:STDOUT: %Core.import = import Core
  407. // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
  408. // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [concrete = constants.%NoF] {} {}
  409. // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [concrete = constants.%FNotFunction] {} {}
  410. // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [concrete = constants.%PossiblyF] {} {}
  411. // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [concrete = constants.%FAlias] {} {}
  412. // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [concrete = constants.%FExtraParam] {} {}
  413. // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [concrete = constants.%FExtraImplicitParam] {} {}
  414. // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [concrete = constants.%FExtraReturnType] {} {}
  415. // CHECK:STDOUT: %J.decl: type = interface_decl @J [concrete = constants.%J.type] {} {}
  416. // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [concrete = constants.%FMissingParam] {} {}
  417. // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [concrete = constants.%FMissingImplicitParam] {} {}
  418. // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [concrete = constants.%FMissingReturnType] {} {}
  419. // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [concrete = constants.%FDifferentParamType] {} {}
  420. // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType] {} {}
  421. // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [concrete = constants.%FDifferentReturnType] {} {}
  422. // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [concrete = constants.%SelfNested.type] {} {}
  423. // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [concrete = constants.%SelfNestedBadParam] {} {}
  424. // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType] {} {}
  425. // CHECK:STDOUT: }
  426. // CHECK:STDOUT:
  427. // CHECK:STDOUT: interface @I {
  428. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.7ee]
  429. // CHECK:STDOUT: %I.F.decl: %I.F.type = fn_decl @I.F [concrete = constants.%I.F] {} {}
  430. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %I.F.decl [concrete = constants.%assoc0.82e]
  431. // CHECK:STDOUT:
  432. // CHECK:STDOUT: !members:
  433. // CHECK:STDOUT: .Self = %Self
  434. // CHECK:STDOUT: .F = %assoc0
  435. // CHECK:STDOUT: witness = (%I.F.decl)
  436. // CHECK:STDOUT: }
  437. // CHECK:STDOUT:
  438. // CHECK:STDOUT: interface @J {
  439. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.bf6]
  440. // CHECK:STDOUT: %J.F.decl: %J.F.type = fn_decl @J.F [concrete = constants.%J.F] {
  441. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  442. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  443. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  444. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  445. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  446. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  447. // CHECK:STDOUT: } {
  448. // CHECK:STDOUT: %Bool.call.loc103_44: init type = call constants.%Bool() [concrete = bool]
  449. // CHECK:STDOUT: %.loc103_44.1: type = value_of_initializer %Bool.call.loc103_44 [concrete = bool]
  450. // CHECK:STDOUT: %.loc103_44.2: type = converted %Bool.call.loc103_44, %.loc103_44.1 [concrete = bool]
  451. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  452. // CHECK:STDOUT: %.loc103_26.1: type = splice_block %.loc103_26.3 [concrete = bool] {
  453. // CHECK:STDOUT: %Bool.call.loc103_26: init type = call constants.%Bool() [concrete = bool]
  454. // CHECK:STDOUT: %.loc103_26.2: type = value_of_initializer %Bool.call.loc103_26 [concrete = bool]
  455. // CHECK:STDOUT: %.loc103_26.3: type = converted %Bool.call.loc103_26, %.loc103_26.2 [concrete = bool]
  456. // CHECK:STDOUT: }
  457. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  458. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  459. // CHECK:STDOUT: %.loc103_35.1: type = splice_block %.loc103_35.3 [concrete = bool] {
  460. // CHECK:STDOUT: %Bool.call.loc103_35: init type = call constants.%Bool() [concrete = bool]
  461. // CHECK:STDOUT: %.loc103_35.2: type = value_of_initializer %Bool.call.loc103_35 [concrete = bool]
  462. // CHECK:STDOUT: %.loc103_35.3: type = converted %Bool.call.loc103_35, %.loc103_35.2 [concrete = bool]
  463. // CHECK:STDOUT: }
  464. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  465. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  466. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  467. // CHECK:STDOUT: }
  468. // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %J.F.decl [concrete = constants.%assoc0.922]
  469. // CHECK:STDOUT:
  470. // CHECK:STDOUT: !members:
  471. // CHECK:STDOUT: .Self = %Self
  472. // CHECK:STDOUT: .F = %assoc0
  473. // CHECK:STDOUT: witness = (%J.F.decl)
  474. // CHECK:STDOUT: }
  475. // CHECK:STDOUT:
  476. // CHECK:STDOUT: interface @SelfNested {
  477. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.3de]
  478. // CHECK:STDOUT: %SelfNested.F.decl: %SelfNested.F.type = fn_decl @SelfNested.F [concrete = constants.%SelfNested.F] {
  479. // CHECK:STDOUT: %x.patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.daf) = binding_pattern x [concrete]
  480. // CHECK:STDOUT: %x.param_patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.daf) = value_param_pattern %x.patt, call_param0 [concrete]
  481. // CHECK:STDOUT: %return.patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.285) = return_slot_pattern [concrete]
  482. // CHECK:STDOUT: %return.param_patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.285) = out_param_pattern %return.patt, call_param1 [concrete]
  483. // CHECK:STDOUT: } {
  484. // CHECK:STDOUT: %Self.ref.loc211_50: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
  485. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  486. // CHECK:STDOUT: %Self.as_type.loc211_50: type = facet_access_type %Self.ref.loc211_50 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  487. // CHECK:STDOUT: %.loc211_50: type = converted %Self.ref.loc211_50, %Self.as_type.loc211_50 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  488. // CHECK:STDOUT: %array_type.loc211_57.2: type = array_type %int_4, %.loc211_50 [symbolic = %array_type.loc211_57.1 (constants.%array_type.fe2)]
  489. // CHECK:STDOUT: %x.param: @SelfNested.F.%tuple.type (%tuple.type.bf8) = value_param call_param0
  490. // CHECK:STDOUT: %.loc211_38.1: type = splice_block %.loc211_38.3 [symbolic = %tuple.type (constants.%tuple.type.bf8)] {
  491. // CHECK:STDOUT: %Self.ref.loc211_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
  492. // CHECK:STDOUT: %Self.as_type.loc211_16: type = facet_access_type %Self.ref.loc211_12 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  493. // CHECK:STDOUT: %.loc211_16: type = converted %Self.ref.loc211_12, %Self.as_type.loc211_16 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  494. // CHECK:STDOUT: %ptr.loc211_16.2: type = ptr_type %.loc211_16 [symbolic = %ptr.loc211_16.1 (constants.%ptr.7fb)]
  495. // CHECK:STDOUT: %Self.ref.loc211_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3de)]
  496. // CHECK:STDOUT: %Self.as_type.loc211_24: type = facet_access_type %Self.ref.loc211_24 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  497. // CHECK:STDOUT: %.loc211_24: type = converted %Self.ref.loc211_24, %Self.as_type.loc211_24 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  498. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  499. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  500. // CHECK:STDOUT: %struct_type.x.y.loc211_37.2: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.9fa), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.a78)]
  501. // CHECK:STDOUT: %.loc211_38.2: %tuple.type.24b = tuple_literal (%ptr.loc211_16.2, %struct_type.x.y.loc211_37.2)
  502. // CHECK:STDOUT: %.loc211_38.3: type = converted %.loc211_38.2, constants.%tuple.type.bf8 [symbolic = %tuple.type (constants.%tuple.type.bf8)]
  503. // CHECK:STDOUT: }
  504. // CHECK:STDOUT: %x: @SelfNested.F.%tuple.type (%tuple.type.bf8) = bind_name x, %x.param
  505. // CHECK:STDOUT: %return.param: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2) = out_param call_param1
  506. // CHECK:STDOUT: %return: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2) = return_slot %return.param
  507. // CHECK:STDOUT: }
  508. // CHECK:STDOUT: %assoc0: %SelfNested.assoc_type = assoc_entity element0, %SelfNested.F.decl [concrete = constants.%assoc0.beb]
  509. // CHECK:STDOUT:
  510. // CHECK:STDOUT: !members:
  511. // CHECK:STDOUT: .Self = %Self
  512. // CHECK:STDOUT: .F = %assoc0
  513. // CHECK:STDOUT: witness = (%SelfNested.F.decl)
  514. // CHECK:STDOUT: }
  515. // CHECK:STDOUT:
  516. // CHECK:STDOUT: impl @NoF.as.I.impl: %Self.ref as %I.ref {
  517. // CHECK:STDOUT: !members:
  518. // CHECK:STDOUT: .F = <poisoned>
  519. // CHECK:STDOUT: witness = @NoF.%I.impl_witness
  520. // CHECK:STDOUT: }
  521. // CHECK:STDOUT:
  522. // CHECK:STDOUT: impl @FNotFunction.as.I.impl: %Self.ref as %I.ref {
  523. // CHECK:STDOUT: %F.decl: type = class_decl @F [concrete = constants.%F] {} {}
  524. // CHECK:STDOUT:
  525. // CHECK:STDOUT: !members:
  526. // CHECK:STDOUT: .F = %F.decl
  527. // CHECK:STDOUT: witness = @FNotFunction.%I.impl_witness
  528. // CHECK:STDOUT: }
  529. // CHECK:STDOUT:
  530. // CHECK:STDOUT: impl @FAlias.as.I.impl: %Self.ref as %I.ref {
  531. // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  532. // CHECK:STDOUT: %F: %PossiblyF.type = bind_alias F, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  533. // CHECK:STDOUT:
  534. // CHECK:STDOUT: !members:
  535. // CHECK:STDOUT: .PossiblyF = <poisoned>
  536. // CHECK:STDOUT: .F = %F
  537. // CHECK:STDOUT: witness = @FAlias.%I.impl_witness
  538. // CHECK:STDOUT: }
  539. // CHECK:STDOUT:
  540. // CHECK:STDOUT: impl @FExtraParam.as.I.impl: %Self.ref as %I.ref {
  541. // 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] {
  542. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  543. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  544. // CHECK:STDOUT: } {
  545. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  546. // CHECK:STDOUT: %.loc69_13.1: type = splice_block %.loc69_13.3 [concrete = bool] {
  547. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  548. // CHECK:STDOUT: %.loc69_13.2: type = value_of_initializer %Bool.call [concrete = bool]
  549. // CHECK:STDOUT: %.loc69_13.3: type = converted %Bool.call, %.loc69_13.2 [concrete = bool]
  550. // CHECK:STDOUT: }
  551. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  552. // CHECK:STDOUT: }
  553. // 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] {} {}
  554. // CHECK:STDOUT:
  555. // CHECK:STDOUT: !members:
  556. // CHECK:STDOUT: .F = %FExtraParam.as.I.impl.F.decl.loc69_18.1
  557. // CHECK:STDOUT: witness = @FExtraParam.%I.impl_witness
  558. // CHECK:STDOUT: }
  559. // CHECK:STDOUT:
  560. // CHECK:STDOUT: impl @FExtraImplicitParam.as.I.impl: %Self.ref as %I.ref {
  561. // 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] {
  562. // CHECK:STDOUT: %self.patt: %pattern_type.8ae = binding_pattern self [concrete]
  563. // CHECK:STDOUT: %self.param_patt: %pattern_type.8ae = value_param_pattern %self.patt, call_param0 [concrete]
  564. // CHECK:STDOUT: } {
  565. // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param call_param0
  566. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  567. // CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param
  568. // CHECK:STDOUT: }
  569. // 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] {} {}
  570. // CHECK:STDOUT:
  571. // CHECK:STDOUT: !members:
  572. // CHECK:STDOUT: .F = %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1
  573. // CHECK:STDOUT: witness = @FExtraImplicitParam.%I.impl_witness
  574. // CHECK:STDOUT: }
  575. // CHECK:STDOUT:
  576. // CHECK:STDOUT: impl @FExtraReturnType.as.I.impl: %Self.ref as %I.ref {
  577. // 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] {
  578. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  579. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param0 [concrete]
  580. // CHECK:STDOUT: } {
  581. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  582. // CHECK:STDOUT: %.loc99_15.1: type = value_of_initializer %Bool.call [concrete = bool]
  583. // CHECK:STDOUT: %.loc99_15.2: type = converted %Bool.call, %.loc99_15.1 [concrete = bool]
  584. // CHECK:STDOUT: %return.param: ref bool = out_param call_param0
  585. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  586. // CHECK:STDOUT: }
  587. // CHECK:STDOUT:
  588. // CHECK:STDOUT: !members:
  589. // CHECK:STDOUT: .F = %FExtraReturnType.as.I.impl.F.decl
  590. // CHECK:STDOUT: witness = @FExtraReturnType.%I.impl_witness
  591. // CHECK:STDOUT: }
  592. // CHECK:STDOUT:
  593. // CHECK:STDOUT: impl @FMissingParam.as.J.impl: %Self.ref as %J.ref {
  594. // 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] {
  595. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  596. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  597. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  598. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  599. // CHECK:STDOUT: } {
  600. // CHECK:STDOUT: %Bool.call.loc117_27: init type = call constants.%Bool() [concrete = bool]
  601. // CHECK:STDOUT: %.loc117_27.1: type = value_of_initializer %Bool.call.loc117_27 [concrete = bool]
  602. // CHECK:STDOUT: %.loc117_27.2: type = converted %Bool.call.loc117_27, %.loc117_27.1 [concrete = bool]
  603. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  604. // CHECK:STDOUT: %.loc117_16.1: type = splice_block %.loc117_16.3 [concrete = bool] {
  605. // CHECK:STDOUT: %Bool.call.loc117_16: init type = call constants.%Bool() [concrete = bool]
  606. // CHECK:STDOUT: %.loc117_16.2: type = value_of_initializer %Bool.call.loc117_16 [concrete = bool]
  607. // CHECK:STDOUT: %.loc117_16.3: type = converted %Bool.call.loc117_16, %.loc117_16.2 [concrete = bool]
  608. // CHECK:STDOUT: }
  609. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  610. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  611. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  612. // CHECK:STDOUT: }
  613. // 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] {
  614. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  615. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  616. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  617. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  618. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  619. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  620. // CHECK:STDOUT: } {
  621. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  622. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  623. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  624. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  625. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  626. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  627. // CHECK:STDOUT: }
  628. // CHECK:STDOUT:
  629. // CHECK:STDOUT: !members:
  630. // CHECK:STDOUT: .F = %FMissingParam.as.J.impl.F.decl.loc117_31.1
  631. // CHECK:STDOUT: witness = @FMissingParam.%J.impl_witness
  632. // CHECK:STDOUT: }
  633. // CHECK:STDOUT:
  634. // CHECK:STDOUT: impl @FMissingImplicitParam.as.J.impl: %Self.ref as %J.ref {
  635. // 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] {
  636. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  637. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  638. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  639. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  640. // CHECK:STDOUT: } {
  641. // CHECK:STDOUT: %Bool.call.loc130_22: init type = call constants.%Bool() [concrete = bool]
  642. // CHECK:STDOUT: %.loc130_22.1: type = value_of_initializer %Bool.call.loc130_22 [concrete = bool]
  643. // CHECK:STDOUT: %.loc130_22.2: type = converted %Bool.call.loc130_22, %.loc130_22.1 [concrete = bool]
  644. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  645. // CHECK:STDOUT: %.loc130_13.1: type = splice_block %.loc130_13.3 [concrete = bool] {
  646. // CHECK:STDOUT: %Bool.call.loc130_13: init type = call constants.%Bool() [concrete = bool]
  647. // CHECK:STDOUT: %.loc130_13.2: type = value_of_initializer %Bool.call.loc130_13 [concrete = bool]
  648. // CHECK:STDOUT: %.loc130_13.3: type = converted %Bool.call.loc130_13, %.loc130_13.2 [concrete = bool]
  649. // CHECK:STDOUT: }
  650. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  651. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  652. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  653. // CHECK:STDOUT: }
  654. // 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] {
  655. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  656. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  657. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  658. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  659. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  660. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  661. // CHECK:STDOUT: } {
  662. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  663. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  664. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  665. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  666. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  667. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  668. // CHECK:STDOUT: }
  669. // CHECK:STDOUT:
  670. // CHECK:STDOUT: !members:
  671. // CHECK:STDOUT: .F = %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1
  672. // CHECK:STDOUT: witness = @FMissingImplicitParam.%J.impl_witness
  673. // CHECK:STDOUT: }
  674. // CHECK:STDOUT:
  675. // CHECK:STDOUT: impl @FMissingReturnType.as.J.impl: %Self.ref as %J.ref {
  676. // 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] {
  677. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  678. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  679. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  680. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  681. // CHECK:STDOUT: } {
  682. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  683. // CHECK:STDOUT: %.loc152_16.1: type = splice_block %.loc152_16.3 [concrete = bool] {
  684. // CHECK:STDOUT: %Bool.call.loc152_16: init type = call constants.%Bool() [concrete = bool]
  685. // CHECK:STDOUT: %.loc152_16.2: type = value_of_initializer %Bool.call.loc152_16 [concrete = bool]
  686. // CHECK:STDOUT: %.loc152_16.3: type = converted %Bool.call.loc152_16, %.loc152_16.2 [concrete = bool]
  687. // CHECK:STDOUT: }
  688. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  689. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  690. // CHECK:STDOUT: %.loc152_25.1: type = splice_block %.loc152_25.3 [concrete = bool] {
  691. // CHECK:STDOUT: %Bool.call.loc152_25: init type = call constants.%Bool() [concrete = bool]
  692. // CHECK:STDOUT: %.loc152_25.2: type = value_of_initializer %Bool.call.loc152_25 [concrete = bool]
  693. // CHECK:STDOUT: %.loc152_25.3: type = converted %Bool.call.loc152_25, %.loc152_25.2 [concrete = bool]
  694. // CHECK:STDOUT: }
  695. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  696. // CHECK:STDOUT: }
  697. // 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] {
  698. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  699. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  700. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  701. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  702. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  703. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  704. // CHECK:STDOUT: } {
  705. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  706. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  707. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  708. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  709. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  710. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  711. // CHECK:STDOUT: }
  712. // CHECK:STDOUT:
  713. // CHECK:STDOUT: !members:
  714. // CHECK:STDOUT: .F = %FMissingReturnType.as.J.impl.F.decl.loc152_30.1
  715. // CHECK:STDOUT: witness = @FMissingReturnType.%J.impl_witness
  716. // CHECK:STDOUT: }
  717. // CHECK:STDOUT:
  718. // CHECK:STDOUT: impl @FDifferentParamType.as.J.impl: %Self.ref as %J.ref {
  719. // 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] {
  720. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  721. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  722. // CHECK:STDOUT: %b.patt: %pattern_type.b90 = binding_pattern b [concrete]
  723. // CHECK:STDOUT: %b.param_patt: %pattern_type.b90 = value_param_pattern %b.patt, call_param1 [concrete]
  724. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  725. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  726. // CHECK:STDOUT: } {
  727. // CHECK:STDOUT: %Bool.call.loc171_34: init type = call constants.%Bool() [concrete = bool]
  728. // CHECK:STDOUT: %.loc171_34.1: type = value_of_initializer %Bool.call.loc171_34 [concrete = bool]
  729. // CHECK:STDOUT: %.loc171_34.2: type = converted %Bool.call.loc171_34, %.loc171_34.1 [concrete = bool]
  730. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  731. // CHECK:STDOUT: %.loc171_16.1: type = splice_block %.loc171_16.3 [concrete = bool] {
  732. // CHECK:STDOUT: %Bool.call.loc171_16: init type = call constants.%Bool() [concrete = bool]
  733. // CHECK:STDOUT: %.loc171_16.2: type = value_of_initializer %Bool.call.loc171_16 [concrete = bool]
  734. // CHECK:STDOUT: %.loc171_16.3: type = converted %Bool.call.loc171_16, %.loc171_16.2 [concrete = bool]
  735. // CHECK:STDOUT: }
  736. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  737. // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param call_param1
  738. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  739. // CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param
  740. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  741. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  742. // CHECK:STDOUT: }
  743. // 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] {
  744. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  745. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  746. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  747. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  748. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  749. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  750. // CHECK:STDOUT: } {
  751. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  752. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  753. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  754. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  755. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  756. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  757. // CHECK:STDOUT: }
  758. // CHECK:STDOUT:
  759. // CHECK:STDOUT: !members:
  760. // CHECK:STDOUT: .F = %FDifferentParamType.as.J.impl.F.decl.loc171_38.1
  761. // CHECK:STDOUT: witness = @FDifferentParamType.%J.impl_witness
  762. // CHECK:STDOUT: }
  763. // CHECK:STDOUT:
  764. // CHECK:STDOUT: impl @FDifferentImplicitParamType.as.J.impl: %Self.ref as %J.ref {
  765. // 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] {
  766. // CHECK:STDOUT: %self.patt: %pattern_type.9cc = binding_pattern self [concrete]
  767. // CHECK:STDOUT: %self.param_patt: %pattern_type.9cc = value_param_pattern %self.patt, call_param0 [concrete]
  768. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  769. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  770. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  771. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  772. // CHECK:STDOUT: } {
  773. // CHECK:STDOUT: %Bool.call.loc184_34: init type = call constants.%Bool() [concrete = bool]
  774. // CHECK:STDOUT: %.loc184_34.1: type = value_of_initializer %Bool.call.loc184_34 [concrete = bool]
  775. // CHECK:STDOUT: %.loc184_34.2: type = converted %Bool.call.loc184_34, %.loc184_34.1 [concrete = bool]
  776. // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param call_param0
  777. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  778. // CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param
  779. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  780. // CHECK:STDOUT: %.loc184_25.1: type = splice_block %.loc184_25.3 [concrete = bool] {
  781. // CHECK:STDOUT: %Bool.call.loc184_25: init type = call constants.%Bool() [concrete = bool]
  782. // CHECK:STDOUT: %.loc184_25.2: type = value_of_initializer %Bool.call.loc184_25 [concrete = bool]
  783. // CHECK:STDOUT: %.loc184_25.3: type = converted %Bool.call.loc184_25, %.loc184_25.2 [concrete = bool]
  784. // CHECK:STDOUT: }
  785. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  786. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  787. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  788. // CHECK:STDOUT: }
  789. // 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] {
  790. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  791. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  792. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  793. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  794. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  795. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  796. // CHECK:STDOUT: } {
  797. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  798. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  799. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  800. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  801. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  802. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  803. // CHECK:STDOUT: }
  804. // CHECK:STDOUT:
  805. // CHECK:STDOUT: !members:
  806. // CHECK:STDOUT: .F = %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1
  807. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%J.impl_witness
  808. // CHECK:STDOUT: }
  809. // CHECK:STDOUT:
  810. // CHECK:STDOUT: impl @FDifferentReturnType.as.J.impl: %Self.ref as %J.ref {
  811. // 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] {
  812. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  813. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  814. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  815. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  816. // CHECK:STDOUT: %return.patt: %pattern_type.8ee = return_slot_pattern [concrete]
  817. // CHECK:STDOUT: %return.param_patt: %pattern_type.8ee = out_param_pattern %return.patt, call_param2 [concrete]
  818. // CHECK:STDOUT: } {
  819. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  820. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  821. // CHECK:STDOUT: %.loc200_16.1: type = splice_block %.loc200_16.3 [concrete = bool] {
  822. // CHECK:STDOUT: %Bool.call.loc200_16: init type = call constants.%Bool() [concrete = bool]
  823. // CHECK:STDOUT: %.loc200_16.2: type = value_of_initializer %Bool.call.loc200_16 [concrete = bool]
  824. // CHECK:STDOUT: %.loc200_16.3: type = converted %Bool.call.loc200_16, %.loc200_16.2 [concrete = bool]
  825. // CHECK:STDOUT: }
  826. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  827. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  828. // CHECK:STDOUT: %.loc200_25.1: type = splice_block %.loc200_25.3 [concrete = bool] {
  829. // CHECK:STDOUT: %Bool.call.loc200_25: init type = call constants.%Bool() [concrete = bool]
  830. // CHECK:STDOUT: %.loc200_25.2: type = value_of_initializer %Bool.call.loc200_25 [concrete = bool]
  831. // CHECK:STDOUT: %.loc200_25.3: type = converted %Bool.call.loc200_25, %.loc200_25.2 [concrete = bool]
  832. // CHECK:STDOUT: }
  833. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  834. // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param call_param2
  835. // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
  836. // CHECK:STDOUT: }
  837. // 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] {
  838. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  839. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  840. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  841. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  842. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  843. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  844. // CHECK:STDOUT: } {
  845. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  846. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  847. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  848. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  849. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  850. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  851. // CHECK:STDOUT: }
  852. // CHECK:STDOUT:
  853. // CHECK:STDOUT: !members:
  854. // CHECK:STDOUT: .F = %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1
  855. // CHECK:STDOUT: witness = @FDifferentReturnType.%J.impl_witness
  856. // CHECK:STDOUT: }
  857. // CHECK:STDOUT:
  858. // CHECK:STDOUT: impl @SelfNestedBadParam.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  859. // 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] {
  860. // CHECK:STDOUT: %x.patt: %pattern_type.714 = binding_pattern x [concrete]
  861. // CHECK:STDOUT: %x.param_patt: %pattern_type.714 = value_param_pattern %x.patt, call_param0 [concrete]
  862. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  863. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  864. // CHECK:STDOUT: } {
  865. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_65: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  866. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  867. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref.loc223_65 [concrete = constants.%array_type.a41]
  868. // CHECK:STDOUT: %x.param: %tuple.type.a7d = value_param call_param0
  869. // CHECK:STDOUT: %.loc223_53.1: type = splice_block %.loc223_53.3 [concrete = constants.%tuple.type.a7d] {
  870. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  871. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam.ref.loc223_14 [concrete = constants.%ptr.4cd]
  872. // CHECK:STDOUT: %int_32.loc223_40: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  873. // CHECK:STDOUT: %i32.loc223_40: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  874. // CHECK:STDOUT: %int_32.loc223_49: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  875. // CHECK:STDOUT: %i32.loc223_49: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  876. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [concrete = constants.%struct_type.x.y.871]
  877. // CHECK:STDOUT: %.loc223_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  878. // CHECK:STDOUT: %.loc223_53.3: type = converted %.loc223_53.2, constants.%tuple.type.a7d [concrete = constants.%tuple.type.a7d]
  879. // CHECK:STDOUT: }
  880. // CHECK:STDOUT: %x: %tuple.type.a7d = bind_name x, %x.param
  881. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  882. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  883. // CHECK:STDOUT: }
  884. // 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] {
  885. // CHECK:STDOUT: %x.patt: %pattern_type.a5c = binding_pattern x [concrete]
  886. // CHECK:STDOUT: %x.param_patt: %pattern_type.a5c = value_param_pattern %x.patt, call_param0 [concrete]
  887. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  888. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  889. // CHECK:STDOUT: } {
  890. // CHECK:STDOUT: %x.param: %tuple.type.9c9 = value_param call_param0
  891. // CHECK:STDOUT: %x: %tuple.type.9c9 = bind_name x, %x.param
  892. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  893. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  894. // CHECK:STDOUT: }
  895. // CHECK:STDOUT:
  896. // CHECK:STDOUT: !members:
  897. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  898. // CHECK:STDOUT: .F = %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1
  899. // CHECK:STDOUT: witness = @SelfNestedBadParam.%SelfNested.impl_witness
  900. // CHECK:STDOUT: }
  901. // CHECK:STDOUT:
  902. // CHECK:STDOUT: impl @SelfNestedBadReturnType.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  903. // 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] {
  904. // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
  905. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  906. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  907. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  908. // CHECK:STDOUT: } {
  909. // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  910. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  911. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref [concrete = constants.%array_type.a41]
  912. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  913. // CHECK:STDOUT: %.loc239_78.1: type = splice_block %.loc239_78.3 [concrete = constants.%tuple.type.eb9] {
  914. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  915. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType.ref.loc239_14 [concrete = constants.%ptr.612]
  916. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  917. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  918. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  919. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete = constants.%struct_type.x.y.ac5]
  920. // CHECK:STDOUT: %.loc239_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  921. // CHECK:STDOUT: %.loc239_78.3: type = converted %.loc239_78.2, constants.%tuple.type.eb9 [concrete = constants.%tuple.type.eb9]
  922. // CHECK:STDOUT: }
  923. // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
  924. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  925. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  926. // CHECK:STDOUT: }
  927. // 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] {
  928. // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
  929. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  930. // CHECK:STDOUT: %return.patt: %pattern_type.f56 = return_slot_pattern [concrete]
  931. // CHECK:STDOUT: %return.param_patt: %pattern_type.f56 = out_param_pattern %return.patt, call_param1 [concrete]
  932. // CHECK:STDOUT: } {
  933. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  934. // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
  935. // CHECK:STDOUT: %return.param: ref %array_type.126 = out_param call_param1
  936. // CHECK:STDOUT: %return: ref %array_type.126 = return_slot %return.param
  937. // CHECK:STDOUT: }
  938. // CHECK:STDOUT:
  939. // CHECK:STDOUT: !members:
  940. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  941. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  942. // CHECK:STDOUT: .F = %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1
  943. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%SelfNested.impl_witness
  944. // CHECK:STDOUT: }
  945. // CHECK:STDOUT:
  946. // CHECK:STDOUT: class @NoF {
  947. // CHECK:STDOUT: impl_decl @NoF.as.I.impl [concrete] {} {
  948. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
  949. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  950. // CHECK:STDOUT: }
  951. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @NoF.as.I.impl [concrete]
  952. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.6bf]
  953. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  954. // CHECK:STDOUT: complete_type_witness = %complete_type
  955. // CHECK:STDOUT:
  956. // CHECK:STDOUT: !members:
  957. // CHECK:STDOUT: .Self = constants.%NoF
  958. // CHECK:STDOUT: .I = <poisoned>
  959. // CHECK:STDOUT: }
  960. // CHECK:STDOUT:
  961. // CHECK:STDOUT: class @FNotFunction {
  962. // CHECK:STDOUT: impl_decl @FNotFunction.as.I.impl [concrete] {} {
  963. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
  964. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  965. // CHECK:STDOUT: }
  966. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FNotFunction.as.I.impl [concrete]
  967. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.aac]
  968. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  969. // CHECK:STDOUT: complete_type_witness = %complete_type
  970. // CHECK:STDOUT:
  971. // CHECK:STDOUT: !members:
  972. // CHECK:STDOUT: .Self = constants.%FNotFunction
  973. // CHECK:STDOUT: .I = <poisoned>
  974. // CHECK:STDOUT: }
  975. // CHECK:STDOUT:
  976. // CHECK:STDOUT: class @F;
  977. // CHECK:STDOUT:
  978. // CHECK:STDOUT: class @FAlias {
  979. // CHECK:STDOUT: impl_decl @FAlias.as.I.impl [concrete] {} {
  980. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
  981. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  982. // CHECK:STDOUT: }
  983. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FAlias.as.I.impl [concrete]
  984. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.bfe]
  985. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  986. // CHECK:STDOUT: complete_type_witness = %complete_type
  987. // CHECK:STDOUT:
  988. // CHECK:STDOUT: !members:
  989. // CHECK:STDOUT: .Self = constants.%FAlias
  990. // CHECK:STDOUT: .I = <poisoned>
  991. // CHECK:STDOUT: .PossiblyF = <poisoned>
  992. // CHECK:STDOUT: }
  993. // CHECK:STDOUT:
  994. // CHECK:STDOUT: class @FExtraParam {
  995. // CHECK:STDOUT: impl_decl @FExtraParam.as.I.impl [concrete] {} {
  996. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
  997. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  998. // CHECK:STDOUT: }
  999. // 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]
  1000. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.4a4]
  1001. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1002. // CHECK:STDOUT: complete_type_witness = %complete_type
  1003. // CHECK:STDOUT:
  1004. // CHECK:STDOUT: !members:
  1005. // CHECK:STDOUT: .Self = constants.%FExtraParam
  1006. // CHECK:STDOUT: .I = <poisoned>
  1007. // CHECK:STDOUT: }
  1008. // CHECK:STDOUT:
  1009. // CHECK:STDOUT: class @FExtraImplicitParam {
  1010. // CHECK:STDOUT: impl_decl @FExtraImplicitParam.as.I.impl [concrete] {} {
  1011. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  1012. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1013. // CHECK:STDOUT: }
  1014. // 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]
  1015. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.c03]
  1016. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1017. // CHECK:STDOUT: complete_type_witness = %complete_type
  1018. // CHECK:STDOUT:
  1019. // CHECK:STDOUT: !members:
  1020. // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
  1021. // CHECK:STDOUT: .I = <poisoned>
  1022. // CHECK:STDOUT: }
  1023. // CHECK:STDOUT:
  1024. // CHECK:STDOUT: class @FExtraReturnType {
  1025. // CHECK:STDOUT: impl_decl @FExtraReturnType.as.I.impl [concrete] {} {
  1026. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
  1027. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1028. // CHECK:STDOUT: }
  1029. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FExtraReturnType.as.I.impl [concrete]
  1030. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.8ff]
  1031. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1032. // CHECK:STDOUT: complete_type_witness = %complete_type
  1033. // CHECK:STDOUT:
  1034. // CHECK:STDOUT: !members:
  1035. // CHECK:STDOUT: .Self = constants.%FExtraReturnType
  1036. // CHECK:STDOUT: .I = <poisoned>
  1037. // CHECK:STDOUT: }
  1038. // CHECK:STDOUT:
  1039. // CHECK:STDOUT: class @FMissingParam {
  1040. // CHECK:STDOUT: impl_decl @FMissingParam.as.J.impl [concrete] {} {
  1041. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
  1042. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1043. // CHECK:STDOUT: }
  1044. // 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]
  1045. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.6a1]
  1046. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1047. // CHECK:STDOUT: complete_type_witness = %complete_type
  1048. // CHECK:STDOUT:
  1049. // CHECK:STDOUT: !members:
  1050. // CHECK:STDOUT: .Self = constants.%FMissingParam
  1051. // CHECK:STDOUT: .J = <poisoned>
  1052. // CHECK:STDOUT: }
  1053. // CHECK:STDOUT:
  1054. // CHECK:STDOUT: class @FMissingImplicitParam {
  1055. // CHECK:STDOUT: impl_decl @FMissingImplicitParam.as.J.impl [concrete] {} {
  1056. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
  1057. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1058. // CHECK:STDOUT: }
  1059. // 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]
  1060. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5f7]
  1061. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1062. // CHECK:STDOUT: complete_type_witness = %complete_type
  1063. // CHECK:STDOUT:
  1064. // CHECK:STDOUT: !members:
  1065. // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
  1066. // CHECK:STDOUT: .J = <poisoned>
  1067. // CHECK:STDOUT: }
  1068. // CHECK:STDOUT:
  1069. // CHECK:STDOUT: class @FMissingReturnType {
  1070. // CHECK:STDOUT: impl_decl @FMissingReturnType.as.J.impl [concrete] {} {
  1071. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
  1072. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1073. // CHECK:STDOUT: }
  1074. // 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]
  1075. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.901]
  1076. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1077. // CHECK:STDOUT: complete_type_witness = %complete_type
  1078. // CHECK:STDOUT:
  1079. // CHECK:STDOUT: !members:
  1080. // CHECK:STDOUT: .Self = constants.%FMissingReturnType
  1081. // CHECK:STDOUT: .J = <poisoned>
  1082. // CHECK:STDOUT: }
  1083. // CHECK:STDOUT:
  1084. // CHECK:STDOUT: class @FDifferentParamType {
  1085. // CHECK:STDOUT: impl_decl @FDifferentParamType.as.J.impl [concrete] {} {
  1086. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  1087. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1088. // CHECK:STDOUT: }
  1089. // 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]
  1090. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.9c0]
  1091. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1092. // CHECK:STDOUT: complete_type_witness = %complete_type
  1093. // CHECK:STDOUT:
  1094. // CHECK:STDOUT: !members:
  1095. // CHECK:STDOUT: .Self = constants.%FDifferentParamType
  1096. // CHECK:STDOUT: .J = <poisoned>
  1097. // CHECK:STDOUT: }
  1098. // CHECK:STDOUT:
  1099. // CHECK:STDOUT: class @FDifferentImplicitParamType {
  1100. // CHECK:STDOUT: impl_decl @FDifferentImplicitParamType.as.J.impl [concrete] {} {
  1101. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1102. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1103. // CHECK:STDOUT: }
  1104. // 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]
  1105. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.5b4]
  1106. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1107. // CHECK:STDOUT: complete_type_witness = %complete_type
  1108. // CHECK:STDOUT:
  1109. // CHECK:STDOUT: !members:
  1110. // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
  1111. // CHECK:STDOUT: .J = <poisoned>
  1112. // CHECK:STDOUT: }
  1113. // CHECK:STDOUT:
  1114. // CHECK:STDOUT: class @FDifferentReturnType {
  1115. // CHECK:STDOUT: impl_decl @FDifferentReturnType.as.J.impl [concrete] {} {
  1116. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1117. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1118. // CHECK:STDOUT: }
  1119. // 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]
  1120. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.bca]
  1121. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1122. // CHECK:STDOUT: complete_type_witness = %complete_type
  1123. // CHECK:STDOUT:
  1124. // CHECK:STDOUT: !members:
  1125. // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
  1126. // CHECK:STDOUT: .J = <poisoned>
  1127. // CHECK:STDOUT: }
  1128. // CHECK:STDOUT:
  1129. // CHECK:STDOUT: class @SelfNestedBadParam {
  1130. // CHECK:STDOUT: impl_decl @SelfNestedBadParam.as.SelfNested.impl [concrete] {} {
  1131. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
  1132. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1133. // CHECK:STDOUT: }
  1134. // 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]
  1135. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.eb9]
  1136. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1137. // CHECK:STDOUT: complete_type_witness = %complete_type
  1138. // CHECK:STDOUT:
  1139. // CHECK:STDOUT: !members:
  1140. // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
  1141. // CHECK:STDOUT: .SelfNested = <poisoned>
  1142. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1143. // CHECK:STDOUT: }
  1144. // CHECK:STDOUT:
  1145. // CHECK:STDOUT: class @SelfNestedBadReturnType {
  1146. // CHECK:STDOUT: impl_decl @SelfNestedBadReturnType.as.SelfNested.impl [concrete] {} {
  1147. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
  1148. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1149. // CHECK:STDOUT: }
  1150. // 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]
  1151. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.c55]
  1152. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1153. // CHECK:STDOUT: complete_type_witness = %complete_type
  1154. // CHECK:STDOUT:
  1155. // CHECK:STDOUT: !members:
  1156. // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
  1157. // CHECK:STDOUT: .SelfNested = <poisoned>
  1158. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  1159. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1160. // CHECK:STDOUT: }
  1161. // CHECK:STDOUT:
  1162. // CHECK:STDOUT: generic fn @I.F(@I.%Self: %I.type) {
  1163. // CHECK:STDOUT: fn();
  1164. // CHECK:STDOUT: }
  1165. // CHECK:STDOUT:
  1166. // CHECK:STDOUT: fn @PossiblyF();
  1167. // CHECK:STDOUT:
  1168. // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.1(%b.param: bool);
  1169. // CHECK:STDOUT:
  1170. // 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] {
  1171. // CHECK:STDOUT: !entry:
  1172. // 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]
  1173. // CHECK:STDOUT: return
  1174. // CHECK:STDOUT: }
  1175. // CHECK:STDOUT:
  1176. // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.1(%self.param: %FExtraImplicitParam);
  1177. // CHECK:STDOUT:
  1178. // 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] {
  1179. // CHECK:STDOUT: !entry:
  1180. // 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]
  1181. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.call: init %empty_tuple.type = call %F.ref(<error>)
  1182. // CHECK:STDOUT: return
  1183. // CHECK:STDOUT: }
  1184. // CHECK:STDOUT:
  1185. // CHECK:STDOUT: fn @FExtraReturnType.as.I.impl.F() -> bool;
  1186. // CHECK:STDOUT:
  1187. // CHECK:STDOUT: generic fn @J.F(@J.%Self: %J.type) {
  1188. // CHECK:STDOUT: fn(%self.param: bool, %b.param: bool) -> bool;
  1189. // CHECK:STDOUT: }
  1190. // CHECK:STDOUT:
  1191. // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.1(%self.param: bool) -> bool;
  1192. // CHECK:STDOUT:
  1193. // 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] {
  1194. // CHECK:STDOUT: !entry:
  1195. // 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]
  1196. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1197. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1198. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1199. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1200. // CHECK:STDOUT: return <error> to %return
  1201. // CHECK:STDOUT: }
  1202. // CHECK:STDOUT:
  1203. // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.1(%b.param: bool) -> bool;
  1204. // CHECK:STDOUT:
  1205. // 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] {
  1206. // CHECK:STDOUT: !entry:
  1207. // 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]
  1208. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1209. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1210. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1211. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.ref)
  1212. // CHECK:STDOUT: return %FMissingImplicitParam.as.J.impl.F.call to %return
  1213. // CHECK:STDOUT: }
  1214. // CHECK:STDOUT:
  1215. // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.1(%self.param: bool, %b.param: bool);
  1216. // CHECK:STDOUT:
  1217. // 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] {
  1218. // CHECK:STDOUT: !entry:
  1219. // 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]
  1220. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1221. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1222. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1223. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1224. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
  1225. // CHECK:STDOUT: %.loc152: bool = converted %FMissingReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1226. // CHECK:STDOUT: return <error> to %return
  1227. // CHECK:STDOUT: }
  1228. // CHECK:STDOUT:
  1229. // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.1(%self.param: bool, %b.param: %FDifferentParamType) -> bool;
  1230. // CHECK:STDOUT:
  1231. // 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] {
  1232. // CHECK:STDOUT: !entry:
  1233. // 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]
  1234. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1235. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1236. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1237. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1238. // CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.ref, <error> [concrete = <error>]
  1239. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.ref, <error>)
  1240. // CHECK:STDOUT: return %FDifferentParamType.as.J.impl.F.call to %return
  1241. // CHECK:STDOUT: }
  1242. // CHECK:STDOUT:
  1243. // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1(%self.param: %FDifferentImplicitParamType, %b.param: bool) -> bool;
  1244. // CHECK:STDOUT:
  1245. // 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] {
  1246. // CHECK:STDOUT: !entry:
  1247. // 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]
  1248. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1249. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1250. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1251. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1252. // CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.ref, <error> [concrete = <error>]
  1253. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.ref)
  1254. // CHECK:STDOUT: return %FDifferentImplicitParamType.as.J.impl.F.call to %return
  1255. // CHECK:STDOUT: }
  1256. // CHECK:STDOUT:
  1257. // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.1(%self.param: bool, %b.param: bool) -> %return.param: %FDifferentReturnType;
  1258. // CHECK:STDOUT:
  1259. // 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] {
  1260. // CHECK:STDOUT: !entry:
  1261. // 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]
  1262. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1263. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1264. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1265. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1266. // CHECK:STDOUT: %.loc200_38.1: ref %FDifferentReturnType = temporary_storage
  1267. // 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
  1268. // CHECK:STDOUT: %.loc200_38.2: bool = converted %FDifferentReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1269. // CHECK:STDOUT: return <error> to %return
  1270. // CHECK:STDOUT: }
  1271. // CHECK:STDOUT:
  1272. // CHECK:STDOUT: generic fn @SelfNested.F(@SelfNested.%Self: %SelfNested.type) {
  1273. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.3de)]
  1274. // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 0, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.9fa)]
  1275. // CHECK:STDOUT: %ptr.loc211_16.1: type = ptr_type %Self.binding.as_type [symbolic = %ptr.loc211_16.1 (constants.%ptr.7fb)]
  1276. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1: type = struct_type {.x: @SelfNested.F.%Self.binding.as_type (%Self.binding.as_type.9fa), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.a78)]
  1277. // CHECK:STDOUT: %tuple.type: type = tuple_type (%ptr.loc211_16.1, %struct_type.x.y.loc211_37.1) [symbolic = %tuple.type (constants.%tuple.type.bf8)]
  1278. // CHECK:STDOUT: %pattern_type.loc211_8: type = pattern_type %tuple.type [symbolic = %pattern_type.loc211_8 (constants.%pattern_type.daf)]
  1279. // CHECK:STDOUT: %array_type.loc211_57.1: type = array_type constants.%int_4, %Self.binding.as_type [symbolic = %array_type.loc211_57.1 (constants.%array_type.fe2)]
  1280. // CHECK:STDOUT: %pattern_type.loc211_41: type = pattern_type %array_type.loc211_57.1 [symbolic = %pattern_type.loc211_41 (constants.%pattern_type.285)]
  1281. // CHECK:STDOUT:
  1282. // CHECK:STDOUT: fn(%x.param: @SelfNested.F.%tuple.type (%tuple.type.bf8)) -> @SelfNested.F.%array_type.loc211_57.1 (%array_type.fe2);
  1283. // CHECK:STDOUT: }
  1284. // CHECK:STDOUT:
  1285. // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1(%x.param: %tuple.type.a7d) -> %return.param: %array_type.a41;
  1286. // CHECK:STDOUT:
  1287. // 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] {
  1288. // CHECK:STDOUT: !entry:
  1289. // 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]
  1290. // CHECK:STDOUT: %x.ref: %tuple.type.9c9 = name_ref x, %x.param
  1291. // CHECK:STDOUT: %return.ref: ref %array_type.a41 = name_ref <return slot>, %return.param
  1292. // CHECK:STDOUT: %.loc211_41: ref %array_type.a41 = splice_block %return {}
  1293. // CHECK:STDOUT: %tuple.elem0: %ptr.4cd = tuple_access %x.ref, element0
  1294. // CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.a89 = tuple_access %x.ref, element1
  1295. // CHECK:STDOUT: %.loc211_9.1: %SelfNestedBadParam = struct_access %tuple.elem1, element0
  1296. // CHECK:STDOUT: %.loc211_9.2: %i32 = converted %.loc211_9.1, <error> [concrete = <error>]
  1297. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(<error>) to %.loc211_41
  1298. // CHECK:STDOUT: return %SelfNestedBadParam.as.SelfNested.impl.F.call to %return
  1299. // CHECK:STDOUT: }
  1300. // CHECK:STDOUT:
  1301. // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1(%x.param: %tuple.type.eb9) -> %return.param: %array_type.a41;
  1302. // CHECK:STDOUT:
  1303. // 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] {
  1304. // CHECK:STDOUT: !entry:
  1305. // 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]
  1306. // CHECK:STDOUT: %x.ref: %tuple.type.eb9 = name_ref x, %x.param
  1307. // CHECK:STDOUT: %return.ref: ref %array_type.126 = name_ref <return slot>, %return.param
  1308. // CHECK:STDOUT: %.loc239_112.1: ref %array_type.a41 = temporary_storage
  1309. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(%x.ref) to %.loc239_112.1
  1310. // CHECK:STDOUT: %.loc239_112.2: %array_type.126 = converted %SelfNestedBadReturnType.as.SelfNested.impl.F.call, <error> [concrete = <error>]
  1311. // CHECK:STDOUT: return <error> to %return
  1312. // CHECK:STDOUT: }
  1313. // CHECK:STDOUT:
  1314. // CHECK:STDOUT: specific @I.F(constants.%Self.7ee) {}
  1315. // CHECK:STDOUT:
  1316. // CHECK:STDOUT: specific @I.F(constants.%I.facet.888) {}
  1317. // CHECK:STDOUT:
  1318. // CHECK:STDOUT: specific @I.F(constants.%I.facet.242) {}
  1319. // CHECK:STDOUT:
  1320. // CHECK:STDOUT: specific @I.F(constants.%I.facet.d1c) {}
  1321. // CHECK:STDOUT:
  1322. // CHECK:STDOUT: specific @J.F(constants.%Self.bf6) {}
  1323. // CHECK:STDOUT:
  1324. // CHECK:STDOUT: specific @J.F(constants.%J.facet.b0a) {}
  1325. // CHECK:STDOUT:
  1326. // CHECK:STDOUT: specific @J.F(constants.%J.facet.2cb) {}
  1327. // CHECK:STDOUT:
  1328. // CHECK:STDOUT: specific @J.F(constants.%J.facet.92c) {}
  1329. // CHECK:STDOUT:
  1330. // CHECK:STDOUT: specific @J.F(constants.%J.facet.bad) {}
  1331. // CHECK:STDOUT:
  1332. // CHECK:STDOUT: specific @J.F(constants.%J.facet.923) {}
  1333. // CHECK:STDOUT:
  1334. // CHECK:STDOUT: specific @J.F(constants.%J.facet.a25) {}
  1335. // CHECK:STDOUT:
  1336. // CHECK:STDOUT: specific @SelfNested.F(constants.%Self.3de) {
  1337. // CHECK:STDOUT: %Self => constants.%Self.3de
  1338. // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.9fa
  1339. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.7fb
  1340. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a78
  1341. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.bf8
  1342. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.daf
  1343. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.fe2
  1344. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.285
  1345. // CHECK:STDOUT: }
  1346. // CHECK:STDOUT:
  1347. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.182) {
  1348. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.182
  1349. // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadParam
  1350. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.4cd
  1351. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a89
  1352. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.9c9
  1353. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.a5c
  1354. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.a41
  1355. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.1f1
  1356. // CHECK:STDOUT: }
  1357. // CHECK:STDOUT:
  1358. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.55d) {
  1359. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.55d
  1360. // CHECK:STDOUT: %Self.binding.as_type => constants.%SelfNestedBadReturnType
  1361. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.612
  1362. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.ac5
  1363. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.eb9
  1364. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.23f
  1365. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.126
  1366. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.f56
  1367. // CHECK:STDOUT: }
  1368. // CHECK:STDOUT: