fail_impl_bad_assoc_fn.carbon 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113
  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. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  10. interface I { fn F(); }
  11. class NoF {
  12. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:3: error: missing implementation of F in impl of interface I [ImplMissingFunction]
  13. // CHECK:STDERR: impl as I {}
  14. // CHECK:STDERR: ^~~~~~~~~~~
  15. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-6]]:15: note: associated function F declared here [AssociatedFunctionHere]
  16. // CHECK:STDERR: interface I { fn F(); }
  17. // CHECK:STDERR: ^~~~~~~
  18. // CHECK:STDERR:
  19. impl as I {}
  20. }
  21. class FNotFunction {
  22. impl as I {
  23. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  24. // CHECK:STDERR: class F;
  25. // CHECK:STDERR: ^~~~~~~~
  26. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-18]]:15: note: associated function F declared here [AssociatedFunctionHere]
  27. // CHECK:STDERR: interface I { fn F(); }
  28. // CHECK:STDERR: ^~~~~~~
  29. // CHECK:STDERR:
  30. class F;
  31. }
  32. }
  33. fn PossiblyF();
  34. // TODO: Should this be permitted?
  35. class FAlias {
  36. impl as I {
  37. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:11: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  38. // CHECK:STDERR: alias F = PossiblyF;
  39. // CHECK:STDERR: ^
  40. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-34]]:15: note: associated function F declared here [AssociatedFunctionHere]
  41. // CHECK:STDERR: interface I { fn F(); }
  42. // CHECK:STDERR: ^~~~~~~
  43. // CHECK:STDERR:
  44. alias F = PossiblyF;
  45. }
  46. }
  47. class FExtraParam {
  48. impl as I {
  49. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: redeclaration differs because of parameter count of 1 [RedeclParamCountDiffers]
  50. // CHECK:STDERR: fn F(b: bool);
  51. // CHECK:STDERR: ^~~~~~~~~~~~~~
  52. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-47]]:15: note: previously declared with parameter count of 0 [RedeclParamCountPrevious]
  53. // CHECK:STDERR: interface I { fn F(); }
  54. // CHECK:STDERR: ^~~~~~~
  55. // CHECK:STDERR:
  56. fn F(b: bool);
  57. }
  58. }
  59. class FExtraImplicitParam {
  60. impl as I {
  61. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: redeclaration differs because of implicit parameter list [RedeclParamListDiffers]
  62. // CHECK:STDERR: fn F[self: Self]();
  63. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
  64. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-60]]:15: note: previously declared without implicit parameter list [RedeclParamListPrevious]
  65. // CHECK:STDERR: interface I { fn F(); }
  66. // CHECK:STDERR: ^~~~~~~
  67. // CHECK:STDERR:
  68. fn F[self: Self]();
  69. }
  70. }
  71. // TODO: Should this be permitted?
  72. class FExtraReturnType {
  73. impl as I {
  74. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `bool` [FunctionRedeclReturnTypeDiffers]
  75. // CHECK:STDERR: fn F() -> bool;
  76. // CHECK:STDERR: ^~~~~~~~~~~~~~~
  77. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-74]]:15: note: previously declared with no return type [FunctionRedeclReturnTypePreviousNoReturn]
  78. // CHECK:STDERR: interface I { fn F(); }
  79. // CHECK:STDERR: ^~~~~~~
  80. // CHECK:STDERR:
  81. fn F() -> bool;
  82. }
  83. }
  84. interface J { fn F[self: bool](b: bool) -> bool; }
  85. class FMissingParam {
  86. impl as J {
  87. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: redeclaration differs because of parameter count of 0 [RedeclParamCountDiffers]
  88. // CHECK:STDERR: fn F[self: bool]() -> bool;
  89. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  90. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-7]]:15: note: previously declared with parameter count of 1 [RedeclParamCountPrevious]
  91. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  92. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93. // CHECK:STDERR:
  94. fn F[self: bool]() -> bool;
  95. }
  96. }
  97. class FMissingImplicitParam {
  98. impl as J {
  99. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: redeclaration differs because of missing implicit parameter list [RedeclParamListDiffers]
  100. // CHECK:STDERR: fn F(b: bool) -> bool;
  101. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
  102. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-20]]:15: note: previously declared with implicit parameter list [RedeclParamListPrevious]
  103. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  104. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  105. // CHECK:STDERR:
  106. fn F(b: bool) -> bool;
  107. }
  108. }
  109. class FMissingReturnType {
  110. impl as J {
  111. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because no return type is provided [FunctionRedeclReturnTypeDiffersNoReturn]
  112. // CHECK:STDERR: fn F[self: bool](b: bool);
  113. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
  114. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-33]]:15: note: previously declared with return type `bool` [FunctionRedeclReturnTypePrevious]
  115. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  116. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117. // CHECK:STDERR:
  118. fn F[self: bool](b: bool);
  119. }
  120. }
  121. class FDifferentParamType {
  122. impl as J {
  123. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:22: error: type `FDifferentParamType` of parameter 1 in redeclaration differs from previous parameter type `bool` [RedeclParamDiffersType]
  124. // CHECK:STDERR: fn F[self: bool](b: Self) -> bool;
  125. // CHECK:STDERR: ^~~~~~~
  126. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-46]]:32: note: previous declaration's corresponding parameter here [RedeclParamPrevious]
  127. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  128. // CHECK:STDERR: ^~~~~~~
  129. // CHECK:STDERR:
  130. fn F[self: bool](b: Self) -> bool;
  131. }
  132. }
  133. class FDifferentImplicitParamType {
  134. impl as J {
  135. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: error: type `FDifferentImplicitParamType` of implicit parameter 1 in redeclaration differs from previous parameter type `bool` [RedeclParamDiffersType]
  136. // CHECK:STDERR: fn F[self: Self](b: bool) -> bool;
  137. // CHECK:STDERR: ^~~~~~~~~~
  138. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-59]]:20: note: previous declaration's corresponding implicit parameter here [RedeclParamPrevious]
  139. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  140. // CHECK:STDERR: ^~~~~~~~~~
  141. // CHECK:STDERR:
  142. fn F[self: Self](b: bool) -> bool;
  143. }
  144. }
  145. class FDifferentReturnType {
  146. impl as J {
  147. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `FDifferentReturnType` [FunctionRedeclReturnTypeDiffers]
  148. // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
  149. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  150. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-72]]:15: note: previously declared with return type `bool` [FunctionRedeclReturnTypePrevious]
  151. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  152. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  153. // CHECK:STDERR:
  154. fn F[self: bool](b: bool) -> Self;
  155. }
  156. }
  157. // TODO: This should probably be permitted.
  158. class FDifferentParamName {
  159. impl as J {
  160. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:22: error: redeclaration differs at parameter 1 [RedeclParamDiffers]
  161. // CHECK:STDERR: fn F[self: bool](not_b: bool) -> bool;
  162. // CHECK:STDERR: ^~~~~~~~~~~
  163. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-86]]:32: note: previous declaration's corresponding parameter here [RedeclParamPrevious]
  164. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  165. // CHECK:STDERR: ^~~~~~~
  166. // CHECK:STDERR:
  167. fn F[self: bool](not_b: bool) -> bool;
  168. }
  169. }
  170. interface SelfNested {
  171. fn F(x: (Self*, {.x: Self, .y: i32})) -> [Self; 4];
  172. }
  173. class SelfNestedBadParam {
  174. impl as SelfNested {
  175. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: error: type `(SelfNestedBadParam*, {.x: i32, .y: i32})` of parameter 1 in redeclaration differs from previous parameter type `(SelfNestedBadParam*, {.x: SelfNestedBadParam, .y: i32})` [RedeclParamDiffersType]
  176. // CHECK:STDERR: fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> [SelfNestedBadParam; 4];
  177. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-8]]:8: note: previous declaration's corresponding parameter here [RedeclParamPrevious]
  179. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> [Self; 4];
  180. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  181. // CHECK:STDERR:
  182. fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> [SelfNestedBadParam; 4];
  183. }
  184. }
  185. class SelfNestedBadReturnType {
  186. impl as SelfNested {
  187. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `[SelfNestedBadParam; 4]` [FunctionRedeclReturnTypeDiffers]
  188. // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> [SelfNestedBadParam; 4];
  189. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  190. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-21]]:3: note: previously declared with return type `[SelfNestedBadReturnType; 4]` [FunctionRedeclReturnTypePrevious]
  191. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> [Self; 4];
  192. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  193. // CHECK:STDERR:
  194. fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> [SelfNestedBadParam; 4];
  195. }
  196. }
  197. // CHECK:STDOUT: --- fail_impl_bad_assoc_fn.carbon
  198. // CHECK:STDOUT:
  199. // CHECK:STDOUT: constants {
  200. // CHECK:STDOUT: %I.type: type = facet_type <@I> [template]
  201. // CHECK:STDOUT: %Self.826: %I.type = bind_symbolic_name Self, 0 [symbolic]
  202. // CHECK:STDOUT: %F.type.cf0: type = fn_type @F.1 [template]
  203. // CHECK:STDOUT: %F.bc6: %F.type.cf0 = struct_value () [template]
  204. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type %I.type [template]
  205. // CHECK:STDOUT: %assoc0.a5e: %I.assoc_type = assoc_entity element0, @I.%F.decl [template]
  206. // CHECK:STDOUT: %NoF: type = class_type @NoF [template]
  207. // CHECK:STDOUT: %impl_witness.85bcb7.1: <witness> = impl_witness (<error>) [template]
  208. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [template]
  209. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [template]
  210. // CHECK:STDOUT: %FNotFunction: type = class_type @FNotFunction [template]
  211. // CHECK:STDOUT: %impl_witness.85bcb7.2: <witness> = impl_witness (<error>) [template]
  212. // CHECK:STDOUT: %F.70c: type = class_type @F.16 [template]
  213. // CHECK:STDOUT: %PossiblyF.type: type = fn_type @PossiblyF [template]
  214. // CHECK:STDOUT: %PossiblyF: %PossiblyF.type = struct_value () [template]
  215. // CHECK:STDOUT: %FAlias: type = class_type @FAlias [template]
  216. // CHECK:STDOUT: %impl_witness.85bcb7.3: <witness> = impl_witness (<error>) [template]
  217. // CHECK:STDOUT: %FExtraParam: type = class_type @FExtraParam [template]
  218. // CHECK:STDOUT: %impl_witness.85bcb7.4: <witness> = impl_witness (<error>) [template]
  219. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
  220. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
  221. // CHECK:STDOUT: %F.type.44e: type = fn_type @F.2 [template]
  222. // CHECK:STDOUT: %F.424: %F.type.44e = struct_value () [template]
  223. // CHECK:STDOUT: %I.facet.3bf: %I.type = facet_value %FExtraParam, %impl_witness.85bcb7.4 [template]
  224. // CHECK:STDOUT: %FExtraImplicitParam: type = class_type @FExtraImplicitParam [template]
  225. // CHECK:STDOUT: %impl_witness.85bcb7.5: <witness> = impl_witness (<error>) [template]
  226. // CHECK:STDOUT: %F.type.e1a: type = fn_type @F.3 [template]
  227. // CHECK:STDOUT: %F.6ff: %F.type.e1a = struct_value () [template]
  228. // CHECK:STDOUT: %I.facet.33b: %I.type = facet_value %FExtraImplicitParam, %impl_witness.85bcb7.5 [template]
  229. // CHECK:STDOUT: %FExtraReturnType: type = class_type @FExtraReturnType [template]
  230. // CHECK:STDOUT: %impl_witness.85bcb7.6: <witness> = impl_witness (<error>) [template]
  231. // CHECK:STDOUT: %F.type.387: type = fn_type @F.4 [template]
  232. // CHECK:STDOUT: %F.df5: %F.type.387 = struct_value () [template]
  233. // CHECK:STDOUT: %I.facet.fad: %I.type = facet_value %FExtraReturnType, %impl_witness.85bcb7.6 [template]
  234. // CHECK:STDOUT: %J.type: type = facet_type <@J> [template]
  235. // CHECK:STDOUT: %Self.ccd: %J.type = bind_symbolic_name Self, 0 [symbolic]
  236. // CHECK:STDOUT: %F.type.c14: type = fn_type @F.5 [template]
  237. // CHECK:STDOUT: %F.b71: %F.type.c14 = struct_value () [template]
  238. // CHECK:STDOUT: %J.assoc_type: type = assoc_entity_type %J.type [template]
  239. // CHECK:STDOUT: %assoc0.ebc: %J.assoc_type = assoc_entity element0, @J.%F.decl [template]
  240. // CHECK:STDOUT: %FMissingParam: type = class_type @FMissingParam [template]
  241. // CHECK:STDOUT: %impl_witness.85bcb7.7: <witness> = impl_witness (<error>) [template]
  242. // CHECK:STDOUT: %F.type.695: type = fn_type @F.6 [template]
  243. // CHECK:STDOUT: %F.738: %F.type.695 = struct_value () [template]
  244. // CHECK:STDOUT: %J.facet.515: %J.type = facet_value %FMissingParam, %impl_witness.85bcb7.7 [template]
  245. // CHECK:STDOUT: %FMissingImplicitParam: type = class_type @FMissingImplicitParam [template]
  246. // CHECK:STDOUT: %impl_witness.85bcb7.8: <witness> = impl_witness (<error>) [template]
  247. // CHECK:STDOUT: %F.type.d97: type = fn_type @F.7 [template]
  248. // CHECK:STDOUT: %F.01d: %F.type.d97 = struct_value () [template]
  249. // CHECK:STDOUT: %J.facet.f88: %J.type = facet_value %FMissingImplicitParam, %impl_witness.85bcb7.8 [template]
  250. // CHECK:STDOUT: %FMissingReturnType: type = class_type @FMissingReturnType [template]
  251. // CHECK:STDOUT: %impl_witness.85bcb7.9: <witness> = impl_witness (<error>) [template]
  252. // CHECK:STDOUT: %F.type.123: type = fn_type @F.8 [template]
  253. // CHECK:STDOUT: %F.c7d: %F.type.123 = struct_value () [template]
  254. // CHECK:STDOUT: %J.facet.43b: %J.type = facet_value %FMissingReturnType, %impl_witness.85bcb7.9 [template]
  255. // CHECK:STDOUT: %FDifferentParamType: type = class_type @FDifferentParamType [template]
  256. // CHECK:STDOUT: %impl_witness.85bcb7.10: <witness> = impl_witness (<error>) [template]
  257. // CHECK:STDOUT: %F.type.6b5: type = fn_type @F.9 [template]
  258. // CHECK:STDOUT: %F.043: %F.type.6b5 = struct_value () [template]
  259. // CHECK:STDOUT: %J.facet.9b0: %J.type = facet_value %FDifferentParamType, %impl_witness.85bcb7.10 [template]
  260. // CHECK:STDOUT: %FDifferentImplicitParamType: type = class_type @FDifferentImplicitParamType [template]
  261. // CHECK:STDOUT: %impl_witness.85bcb7.11: <witness> = impl_witness (<error>) [template]
  262. // CHECK:STDOUT: %F.type.d62: type = fn_type @F.10 [template]
  263. // CHECK:STDOUT: %F.886: %F.type.d62 = struct_value () [template]
  264. // CHECK:STDOUT: %J.facet.4bb: %J.type = facet_value %FDifferentImplicitParamType, %impl_witness.85bcb7.11 [template]
  265. // CHECK:STDOUT: %FDifferentReturnType: type = class_type @FDifferentReturnType [template]
  266. // CHECK:STDOUT: %impl_witness.85bcb7.12: <witness> = impl_witness (<error>) [template]
  267. // CHECK:STDOUT: %F.type.d3b: type = fn_type @F.11 [template]
  268. // CHECK:STDOUT: %F.be8: %F.type.d3b = struct_value () [template]
  269. // CHECK:STDOUT: %J.facet.5c7: %J.type = facet_value %FDifferentReturnType, %impl_witness.85bcb7.12 [template]
  270. // CHECK:STDOUT: %FDifferentParamName: type = class_type @FDifferentParamName [template]
  271. // CHECK:STDOUT: %impl_witness.85bcb7.13: <witness> = impl_witness (<error>) [template]
  272. // CHECK:STDOUT: %F.type.d19: type = fn_type @F.12 [template]
  273. // CHECK:STDOUT: %F.669: %F.type.d19 = struct_value () [template]
  274. // CHECK:STDOUT: %J.facet.daf: %J.type = facet_value %FDifferentParamName, %impl_witness.85bcb7.13 [template]
  275. // CHECK:STDOUT: %SelfNested.type: type = facet_type <@SelfNested> [template]
  276. // CHECK:STDOUT: %Self.2ff: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic]
  277. // CHECK:STDOUT: %Self.as_type: type = facet_access_type %Self.2ff [symbolic]
  278. // CHECK:STDOUT: %ptr.e87: type = ptr_type %Self.as_type [symbolic]
  279. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template]
  280. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [template]
  281. // CHECK:STDOUT: %struct_type.x.y.81e: type = struct_type {.x: %Self.as_type, .y: %i32} [symbolic]
  282. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [template]
  283. // CHECK:STDOUT: %tuple.type.229: type = tuple_type (%ptr.e87, %struct_type.x.y.81e) [symbolic]
  284. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template]
  285. // CHECK:STDOUT: %array_type.873: type = array_type %int_4, %Self.as_type [symbolic]
  286. // CHECK:STDOUT: %F.type.6ed: type = fn_type @F.13 [template]
  287. // CHECK:STDOUT: %F.998: %F.type.6ed = struct_value () [template]
  288. // CHECK:STDOUT: %SelfNested.assoc_type: type = assoc_entity_type %SelfNested.type [template]
  289. // CHECK:STDOUT: %assoc0.a58: %SelfNested.assoc_type = assoc_entity element0, @SelfNested.%F.decl [template]
  290. // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [template]
  291. // CHECK:STDOUT: %impl_witness.85bcb7.14: <witness> = impl_witness (<error>) [template]
  292. // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [template]
  293. // CHECK:STDOUT: %struct_type.x.y.871: type = struct_type {.x: %i32, .y: %i32} [template]
  294. // CHECK:STDOUT: %tuple.type.a7d: type = tuple_type (%ptr.4cd, %struct_type.x.y.871) [template]
  295. // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [template]
  296. // CHECK:STDOUT: %F.type.f90: type = fn_type @F.14 [template]
  297. // CHECK:STDOUT: %F.fa8: %F.type.f90 = struct_value () [template]
  298. // CHECK:STDOUT: %SelfNested.facet.61c: %SelfNested.type = facet_value %SelfNestedBadParam, %impl_witness.85bcb7.14 [template]
  299. // CHECK:STDOUT: %struct_type.x.y.a89: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [template]
  300. // CHECK:STDOUT: %tuple.type.9c9: type = tuple_type (%ptr.4cd, %struct_type.x.y.a89) [template]
  301. // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [template]
  302. // CHECK:STDOUT: %impl_witness.85bcb7.15: <witness> = impl_witness (<error>) [template]
  303. // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [template]
  304. // CHECK:STDOUT: %struct_type.x.y.ac5: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [template]
  305. // CHECK:STDOUT: %tuple.type.eb9: type = tuple_type (%ptr.612, %struct_type.x.y.ac5) [template]
  306. // CHECK:STDOUT: %F.type.0e7: type = fn_type @F.15 [template]
  307. // CHECK:STDOUT: %F.0bc: %F.type.0e7 = struct_value () [template]
  308. // CHECK:STDOUT: %SelfNested.facet.01f: %SelfNested.type = facet_value %SelfNestedBadReturnType, %impl_witness.85bcb7.15 [template]
  309. // CHECK:STDOUT: %array_type.126: type = array_type %int_4, %SelfNestedBadReturnType [template]
  310. // CHECK:STDOUT: }
  311. // CHECK:STDOUT:
  312. // CHECK:STDOUT: imports {
  313. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  314. // CHECK:STDOUT: .Bool = %Core.Bool
  315. // CHECK:STDOUT: .Int = %Core.Int
  316. // CHECK:STDOUT: import Core//prelude
  317. // CHECK:STDOUT: import Core//prelude/...
  318. // CHECK:STDOUT: }
  319. // CHECK:STDOUT: }
  320. // CHECK:STDOUT:
  321. // CHECK:STDOUT: file {
  322. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  323. // CHECK:STDOUT: .Core = imports.%Core
  324. // CHECK:STDOUT: .I = %I.decl
  325. // CHECK:STDOUT: .NoF = %NoF.decl
  326. // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
  327. // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
  328. // CHECK:STDOUT: .FAlias = %FAlias.decl
  329. // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
  330. // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
  331. // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
  332. // CHECK:STDOUT: .J = %J.decl
  333. // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
  334. // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
  335. // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
  336. // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
  337. // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
  338. // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
  339. // CHECK:STDOUT: .FDifferentParamName = %FDifferentParamName.decl
  340. // CHECK:STDOUT: .SelfNested = %SelfNested.decl
  341. // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
  342. // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
  343. // CHECK:STDOUT: }
  344. // CHECK:STDOUT: %Core.import = import Core
  345. // CHECK:STDOUT: %I.decl: type = interface_decl @I [template = constants.%I.type] {} {}
  346. // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [template = constants.%NoF] {} {}
  347. // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [template = constants.%FNotFunction] {} {}
  348. // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [template = constants.%PossiblyF] {} {}
  349. // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [template = constants.%FAlias] {} {}
  350. // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [template = constants.%FExtraParam] {} {}
  351. // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [template = constants.%FExtraImplicitParam] {} {}
  352. // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [template = constants.%FExtraReturnType] {} {}
  353. // CHECK:STDOUT: %J.decl: type = interface_decl @J [template = constants.%J.type] {} {}
  354. // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [template = constants.%FMissingParam] {} {}
  355. // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [template = constants.%FMissingImplicitParam] {} {}
  356. // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [template = constants.%FMissingReturnType] {} {}
  357. // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [template = constants.%FDifferentParamType] {} {}
  358. // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType] {} {}
  359. // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [template = constants.%FDifferentReturnType] {} {}
  360. // CHECK:STDOUT: %FDifferentParamName.decl: type = class_decl @FDifferentParamName [template = constants.%FDifferentParamName] {} {}
  361. // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [template = constants.%SelfNested.type] {} {}
  362. // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [template = constants.%SelfNestedBadParam] {} {}
  363. // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [template = constants.%SelfNestedBadReturnType] {} {}
  364. // CHECK:STDOUT: }
  365. // CHECK:STDOUT:
  366. // CHECK:STDOUT: interface @I {
  367. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.826]
  368. // CHECK:STDOUT: %F.decl: %F.type.cf0 = fn_decl @F.1 [template = constants.%F.bc6] {} {}
  369. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %F.decl [template = constants.%assoc0.a5e]
  370. // CHECK:STDOUT:
  371. // CHECK:STDOUT: !members:
  372. // CHECK:STDOUT: .Self = %Self
  373. // CHECK:STDOUT: .F = %assoc0
  374. // CHECK:STDOUT: witness = (%F.decl)
  375. // CHECK:STDOUT: }
  376. // CHECK:STDOUT:
  377. // CHECK:STDOUT: interface @J {
  378. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.ccd]
  379. // CHECK:STDOUT: %F.decl: %F.type.c14 = fn_decl @F.5 [template = constants.%F.b71] {
  380. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  381. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  382. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  383. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  384. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  385. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  386. // CHECK:STDOUT: } {
  387. // CHECK:STDOUT: %bool.make_type.loc93_44: init type = call constants.%Bool() [template = bool]
  388. // CHECK:STDOUT: %.loc93_44.1: type = value_of_initializer %bool.make_type.loc93_44 [template = bool]
  389. // CHECK:STDOUT: %.loc93_44.2: type = converted %bool.make_type.loc93_44, %.loc93_44.1 [template = bool]
  390. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  391. // CHECK:STDOUT: %.loc93_26.1: type = splice_block %.loc93_26.3 [template = bool] {
  392. // CHECK:STDOUT: %bool.make_type.loc93_26: init type = call constants.%Bool() [template = bool]
  393. // CHECK:STDOUT: %.loc93_26.2: type = value_of_initializer %bool.make_type.loc93_26 [template = bool]
  394. // CHECK:STDOUT: %.loc93_26.3: type = converted %bool.make_type.loc93_26, %.loc93_26.2 [template = bool]
  395. // CHECK:STDOUT: }
  396. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  397. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  398. // CHECK:STDOUT: %.loc93_35.1: type = splice_block %.loc93_35.3 [template = bool] {
  399. // CHECK:STDOUT: %bool.make_type.loc93_35: init type = call constants.%Bool() [template = bool]
  400. // CHECK:STDOUT: %.loc93_35.2: type = value_of_initializer %bool.make_type.loc93_35 [template = bool]
  401. // CHECK:STDOUT: %.loc93_35.3: type = converted %bool.make_type.loc93_35, %.loc93_35.2 [template = bool]
  402. // CHECK:STDOUT: }
  403. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  404. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  405. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  406. // CHECK:STDOUT: }
  407. // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %F.decl [template = constants.%assoc0.ebc]
  408. // CHECK:STDOUT:
  409. // CHECK:STDOUT: !members:
  410. // CHECK:STDOUT: .Self = %Self
  411. // CHECK:STDOUT: .F = %assoc0
  412. // CHECK:STDOUT: witness = (%F.decl)
  413. // CHECK:STDOUT: }
  414. // CHECK:STDOUT:
  415. // CHECK:STDOUT: interface @SelfNested {
  416. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.2ff]
  417. // CHECK:STDOUT: %F.decl: %F.type.6ed = fn_decl @F.13 [template = constants.%F.998] {
  418. // CHECK:STDOUT: %x.patt: @F.13.%tuple.type (%tuple.type.229) = binding_pattern x
  419. // CHECK:STDOUT: %x.param_patt: @F.13.%tuple.type (%tuple.type.229) = value_param_pattern %x.patt, runtime_param0
  420. // CHECK:STDOUT: %return.patt: @F.13.%array_type.loc188_52.1 (%array_type.873) = return_slot_pattern
  421. // CHECK:STDOUT: %return.param_patt: @F.13.%array_type.loc188_52.1 (%array_type.873) = out_param_pattern %return.patt, runtime_param1
  422. // CHECK:STDOUT: } {
  423. // CHECK:STDOUT: %Self.ref.loc188_45: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  424. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  425. // CHECK:STDOUT: %Self.as_type.loc188_45: type = facet_access_type %Self.ref.loc188_45 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  426. // CHECK:STDOUT: %.loc188_45: type = converted %Self.ref.loc188_45, %Self.as_type.loc188_45 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  427. // CHECK:STDOUT: %array_type.loc188_52.2: type = array_type %int_4, %Self.as_type [symbolic = %array_type.loc188_52.1 (constants.%array_type.873)]
  428. // CHECK:STDOUT: %x.param: @F.13.%tuple.type (%tuple.type.229) = value_param runtime_param0
  429. // CHECK:STDOUT: %.loc188_38.1: type = splice_block %.loc188_38.3 [symbolic = %tuple.type (constants.%tuple.type.229)] {
  430. // CHECK:STDOUT: %Self.ref.loc188_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  431. // CHECK:STDOUT: %Self.as_type.loc188_16.2: type = facet_access_type %Self.ref.loc188_12 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  432. // CHECK:STDOUT: %.loc188_16: type = converted %Self.ref.loc188_12, %Self.as_type.loc188_16.2 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  433. // CHECK:STDOUT: %ptr.loc188_16.2: type = ptr_type %Self.as_type [symbolic = %ptr.loc188_16.1 (constants.%ptr.e87)]
  434. // CHECK:STDOUT: %Self.ref.loc188_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  435. // CHECK:STDOUT: %Self.as_type.loc188_24: type = facet_access_type %Self.ref.loc188_24 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  436. // CHECK:STDOUT: %.loc188_24: type = converted %Self.ref.loc188_24, %Self.as_type.loc188_24 [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  437. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  438. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  439. // CHECK:STDOUT: %struct_type.x.y.loc188_37.2: type = struct_type {.x: %Self.as_type, .y: %i32} [symbolic = %struct_type.x.y.loc188_37.1 (constants.%struct_type.x.y.81e)]
  440. // CHECK:STDOUT: %.loc188_38.2: %tuple.type.24b = tuple_literal (%ptr.loc188_16.2, %struct_type.x.y.loc188_37.2)
  441. // CHECK:STDOUT: %.loc188_38.3: type = converted %.loc188_38.2, constants.%tuple.type.229 [symbolic = %tuple.type (constants.%tuple.type.229)]
  442. // CHECK:STDOUT: }
  443. // CHECK:STDOUT: %x: @F.13.%tuple.type (%tuple.type.229) = bind_name x, %x.param
  444. // CHECK:STDOUT: %return.param: ref @F.13.%array_type.loc188_52.1 (%array_type.873) = out_param runtime_param1
  445. // CHECK:STDOUT: %return: ref @F.13.%array_type.loc188_52.1 (%array_type.873) = return_slot %return.param
  446. // CHECK:STDOUT: }
  447. // CHECK:STDOUT: %assoc0: %SelfNested.assoc_type = assoc_entity element0, %F.decl [template = constants.%assoc0.a58]
  448. // CHECK:STDOUT:
  449. // CHECK:STDOUT: !members:
  450. // CHECK:STDOUT: .Self = %Self
  451. // CHECK:STDOUT: .F = %assoc0
  452. // CHECK:STDOUT: witness = (%F.decl)
  453. // CHECK:STDOUT: }
  454. // CHECK:STDOUT:
  455. // CHECK:STDOUT: impl @impl.1: %Self.ref as %I.ref {
  456. // CHECK:STDOUT: !members:
  457. // CHECK:STDOUT: witness = @NoF.%impl_witness
  458. // CHECK:STDOUT: }
  459. // CHECK:STDOUT:
  460. // CHECK:STDOUT: impl @impl.2: %Self.ref as %I.ref {
  461. // CHECK:STDOUT: %F.decl: type = class_decl @F.16 [template = constants.%F.70c] {} {}
  462. // CHECK:STDOUT:
  463. // CHECK:STDOUT: !members:
  464. // CHECK:STDOUT: .F = %F.decl
  465. // CHECK:STDOUT: witness = @FNotFunction.%impl_witness
  466. // CHECK:STDOUT: }
  467. // CHECK:STDOUT:
  468. // CHECK:STDOUT: impl @impl.3: %Self.ref as %I.ref {
  469. // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [template = constants.%PossiblyF]
  470. // CHECK:STDOUT: %F: %PossiblyF.type = bind_alias F, file.%PossiblyF.decl [template = constants.%PossiblyF]
  471. // CHECK:STDOUT:
  472. // CHECK:STDOUT: !members:
  473. // CHECK:STDOUT: .F = %F
  474. // CHECK:STDOUT: witness = @FAlias.%impl_witness
  475. // CHECK:STDOUT: }
  476. // CHECK:STDOUT:
  477. // CHECK:STDOUT: impl @impl.4: %Self.ref as %I.ref {
  478. // CHECK:STDOUT: %F.decl: %F.type.44e = fn_decl @F.2 [template = constants.%F.424] {
  479. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  480. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param0
  481. // CHECK:STDOUT: } {
  482. // CHECK:STDOUT: %b.param: bool = value_param runtime_param0
  483. // CHECK:STDOUT: %.loc62_13.1: type = splice_block %.loc62_13.3 [template = bool] {
  484. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  485. // CHECK:STDOUT: %.loc62_13.2: type = value_of_initializer %bool.make_type [template = bool]
  486. // CHECK:STDOUT: %.loc62_13.3: type = converted %bool.make_type, %.loc62_13.2 [template = bool]
  487. // CHECK:STDOUT: }
  488. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  489. // CHECK:STDOUT: }
  490. // CHECK:STDOUT:
  491. // CHECK:STDOUT: !members:
  492. // CHECK:STDOUT: .F = %F.decl
  493. // CHECK:STDOUT: witness = @FExtraParam.%impl_witness
  494. // CHECK:STDOUT: }
  495. // CHECK:STDOUT:
  496. // CHECK:STDOUT: impl @impl.5: %Self.ref as %I.ref {
  497. // CHECK:STDOUT: %F.decl: %F.type.e1a = fn_decl @F.3 [template = constants.%F.6ff] {
  498. // CHECK:STDOUT: %self.patt: %FExtraImplicitParam = binding_pattern self
  499. // CHECK:STDOUT: %self.param_patt: %FExtraImplicitParam = value_param_pattern %self.patt, runtime_param0
  500. // CHECK:STDOUT: } {
  501. // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param runtime_param0
  502. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [template = constants.%FExtraImplicitParam]
  503. // CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param
  504. // CHECK:STDOUT: }
  505. // CHECK:STDOUT:
  506. // CHECK:STDOUT: !members:
  507. // CHECK:STDOUT: .F = %F.decl
  508. // CHECK:STDOUT: witness = @FExtraImplicitParam.%impl_witness
  509. // CHECK:STDOUT: }
  510. // CHECK:STDOUT:
  511. // CHECK:STDOUT: impl @impl.6: %Self.ref as %I.ref {
  512. // CHECK:STDOUT: %F.decl: %F.type.387 = fn_decl @F.4 [template = constants.%F.df5] {
  513. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  514. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param0
  515. // CHECK:STDOUT: } {
  516. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  517. // CHECK:STDOUT: %.loc89_15.1: type = value_of_initializer %bool.make_type [template = bool]
  518. // CHECK:STDOUT: %.loc89_15.2: type = converted %bool.make_type, %.loc89_15.1 [template = bool]
  519. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param0
  520. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  521. // CHECK:STDOUT: }
  522. // CHECK:STDOUT:
  523. // CHECK:STDOUT: !members:
  524. // CHECK:STDOUT: .F = %F.decl
  525. // CHECK:STDOUT: witness = @FExtraReturnType.%impl_witness
  526. // CHECK:STDOUT: }
  527. // CHECK:STDOUT:
  528. // CHECK:STDOUT: impl @impl.7: %Self.ref as %J.ref {
  529. // CHECK:STDOUT: %F.decl: %F.type.695 = fn_decl @F.6 [template = constants.%F.738] {
  530. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  531. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  532. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  533. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param1
  534. // CHECK:STDOUT: } {
  535. // CHECK:STDOUT: %bool.make_type.loc104_27: init type = call constants.%Bool() [template = bool]
  536. // CHECK:STDOUT: %.loc104_27.1: type = value_of_initializer %bool.make_type.loc104_27 [template = bool]
  537. // CHECK:STDOUT: %.loc104_27.2: type = converted %bool.make_type.loc104_27, %.loc104_27.1 [template = bool]
  538. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  539. // CHECK:STDOUT: %.loc104_16.1: type = splice_block %.loc104_16.3 [template = bool] {
  540. // CHECK:STDOUT: %bool.make_type.loc104_16: init type = call constants.%Bool() [template = bool]
  541. // CHECK:STDOUT: %.loc104_16.2: type = value_of_initializer %bool.make_type.loc104_16 [template = bool]
  542. // CHECK:STDOUT: %.loc104_16.3: type = converted %bool.make_type.loc104_16, %.loc104_16.2 [template = bool]
  543. // CHECK:STDOUT: }
  544. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  545. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param1
  546. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  547. // CHECK:STDOUT: }
  548. // CHECK:STDOUT:
  549. // CHECK:STDOUT: !members:
  550. // CHECK:STDOUT: .F = %F.decl
  551. // CHECK:STDOUT: witness = @FMissingParam.%impl_witness
  552. // CHECK:STDOUT: }
  553. // CHECK:STDOUT:
  554. // CHECK:STDOUT: impl @impl.8: %Self.ref as %J.ref {
  555. // CHECK:STDOUT: %F.decl: %F.type.d97 = fn_decl @F.7 [template = constants.%F.01d] {
  556. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  557. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param0
  558. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  559. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param1
  560. // CHECK:STDOUT: } {
  561. // CHECK:STDOUT: %bool.make_type.loc117_22: init type = call constants.%Bool() [template = bool]
  562. // CHECK:STDOUT: %.loc117_22.1: type = value_of_initializer %bool.make_type.loc117_22 [template = bool]
  563. // CHECK:STDOUT: %.loc117_22.2: type = converted %bool.make_type.loc117_22, %.loc117_22.1 [template = bool]
  564. // CHECK:STDOUT: %b.param: bool = value_param runtime_param0
  565. // CHECK:STDOUT: %.loc117_13.1: type = splice_block %.loc117_13.3 [template = bool] {
  566. // CHECK:STDOUT: %bool.make_type.loc117_13: init type = call constants.%Bool() [template = bool]
  567. // CHECK:STDOUT: %.loc117_13.2: type = value_of_initializer %bool.make_type.loc117_13 [template = bool]
  568. // CHECK:STDOUT: %.loc117_13.3: type = converted %bool.make_type.loc117_13, %.loc117_13.2 [template = bool]
  569. // CHECK:STDOUT: }
  570. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  571. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param1
  572. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  573. // CHECK:STDOUT: }
  574. // CHECK:STDOUT:
  575. // CHECK:STDOUT: !members:
  576. // CHECK:STDOUT: .F = %F.decl
  577. // CHECK:STDOUT: witness = @FMissingImplicitParam.%impl_witness
  578. // CHECK:STDOUT: }
  579. // CHECK:STDOUT:
  580. // CHECK:STDOUT: impl @impl.9: %Self.ref as %J.ref {
  581. // CHECK:STDOUT: %F.decl: %F.type.123 = fn_decl @F.8 [template = constants.%F.c7d] {
  582. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  583. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  584. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  585. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  586. // CHECK:STDOUT: } {
  587. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  588. // CHECK:STDOUT: %.loc130_16.1: type = splice_block %.loc130_16.3 [template = bool] {
  589. // CHECK:STDOUT: %bool.make_type.loc130_16: init type = call constants.%Bool() [template = bool]
  590. // CHECK:STDOUT: %.loc130_16.2: type = value_of_initializer %bool.make_type.loc130_16 [template = bool]
  591. // CHECK:STDOUT: %.loc130_16.3: type = converted %bool.make_type.loc130_16, %.loc130_16.2 [template = bool]
  592. // CHECK:STDOUT: }
  593. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  594. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  595. // CHECK:STDOUT: %.loc130_25.1: type = splice_block %.loc130_25.3 [template = bool] {
  596. // CHECK:STDOUT: %bool.make_type.loc130_25: init type = call constants.%Bool() [template = bool]
  597. // CHECK:STDOUT: %.loc130_25.2: type = value_of_initializer %bool.make_type.loc130_25 [template = bool]
  598. // CHECK:STDOUT: %.loc130_25.3: type = converted %bool.make_type.loc130_25, %.loc130_25.2 [template = bool]
  599. // CHECK:STDOUT: }
  600. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  601. // CHECK:STDOUT: }
  602. // CHECK:STDOUT:
  603. // CHECK:STDOUT: !members:
  604. // CHECK:STDOUT: .F = %F.decl
  605. // CHECK:STDOUT: witness = @FMissingReturnType.%impl_witness
  606. // CHECK:STDOUT: }
  607. // CHECK:STDOUT:
  608. // CHECK:STDOUT: impl @impl.10: %Self.ref as %J.ref {
  609. // CHECK:STDOUT: %F.decl: %F.type.6b5 = fn_decl @F.9 [template = constants.%F.043] {
  610. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  611. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  612. // CHECK:STDOUT: %b.patt: %FDifferentParamType = binding_pattern b
  613. // CHECK:STDOUT: %b.param_patt: %FDifferentParamType = value_param_pattern %b.patt, runtime_param1
  614. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  615. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  616. // CHECK:STDOUT: } {
  617. // CHECK:STDOUT: %bool.make_type.loc143_34: init type = call constants.%Bool() [template = bool]
  618. // CHECK:STDOUT: %.loc143_34.1: type = value_of_initializer %bool.make_type.loc143_34 [template = bool]
  619. // CHECK:STDOUT: %.loc143_34.2: type = converted %bool.make_type.loc143_34, %.loc143_34.1 [template = bool]
  620. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  621. // CHECK:STDOUT: %.loc143_16.1: type = splice_block %.loc143_16.3 [template = bool] {
  622. // CHECK:STDOUT: %bool.make_type.loc143_16: init type = call constants.%Bool() [template = bool]
  623. // CHECK:STDOUT: %.loc143_16.2: type = value_of_initializer %bool.make_type.loc143_16 [template = bool]
  624. // CHECK:STDOUT: %.loc143_16.3: type = converted %bool.make_type.loc143_16, %.loc143_16.2 [template = bool]
  625. // CHECK:STDOUT: }
  626. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  627. // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param runtime_param1
  628. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [template = constants.%FDifferentParamType]
  629. // CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param
  630. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  631. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  632. // CHECK:STDOUT: }
  633. // CHECK:STDOUT:
  634. // CHECK:STDOUT: !members:
  635. // CHECK:STDOUT: .F = %F.decl
  636. // CHECK:STDOUT: witness = @FDifferentParamType.%impl_witness
  637. // CHECK:STDOUT: }
  638. // CHECK:STDOUT:
  639. // CHECK:STDOUT: impl @impl.11: %Self.ref as %J.ref {
  640. // CHECK:STDOUT: %F.decl: %F.type.d62 = fn_decl @F.10 [template = constants.%F.886] {
  641. // CHECK:STDOUT: %self.patt: %FDifferentImplicitParamType = binding_pattern self
  642. // CHECK:STDOUT: %self.param_patt: %FDifferentImplicitParamType = value_param_pattern %self.patt, runtime_param0
  643. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  644. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  645. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  646. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  647. // CHECK:STDOUT: } {
  648. // CHECK:STDOUT: %bool.make_type.loc156_34: init type = call constants.%Bool() [template = bool]
  649. // CHECK:STDOUT: %.loc156_34.1: type = value_of_initializer %bool.make_type.loc156_34 [template = bool]
  650. // CHECK:STDOUT: %.loc156_34.2: type = converted %bool.make_type.loc156_34, %.loc156_34.1 [template = bool]
  651. // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param runtime_param0
  652. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType]
  653. // CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param
  654. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  655. // CHECK:STDOUT: %.loc156_25.1: type = splice_block %.loc156_25.3 [template = bool] {
  656. // CHECK:STDOUT: %bool.make_type.loc156_25: init type = call constants.%Bool() [template = bool]
  657. // CHECK:STDOUT: %.loc156_25.2: type = value_of_initializer %bool.make_type.loc156_25 [template = bool]
  658. // CHECK:STDOUT: %.loc156_25.3: type = converted %bool.make_type.loc156_25, %.loc156_25.2 [template = bool]
  659. // CHECK:STDOUT: }
  660. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  661. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  662. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  663. // CHECK:STDOUT: }
  664. // CHECK:STDOUT:
  665. // CHECK:STDOUT: !members:
  666. // CHECK:STDOUT: .F = %F.decl
  667. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%impl_witness
  668. // CHECK:STDOUT: }
  669. // CHECK:STDOUT:
  670. // CHECK:STDOUT: impl @impl.12: %Self.ref as %J.ref {
  671. // CHECK:STDOUT: %F.decl: %F.type.d3b = fn_decl @F.11 [template = constants.%F.be8] {
  672. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  673. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  674. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  675. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  676. // CHECK:STDOUT: %return.patt: %FDifferentReturnType = return_slot_pattern
  677. // CHECK:STDOUT: %return.param_patt: %FDifferentReturnType = out_param_pattern %return.patt, runtime_param2
  678. // CHECK:STDOUT: } {
  679. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [template = constants.%FDifferentReturnType]
  680. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  681. // CHECK:STDOUT: %.loc169_16.1: type = splice_block %.loc169_16.3 [template = bool] {
  682. // CHECK:STDOUT: %bool.make_type.loc169_16: init type = call constants.%Bool() [template = bool]
  683. // CHECK:STDOUT: %.loc169_16.2: type = value_of_initializer %bool.make_type.loc169_16 [template = bool]
  684. // CHECK:STDOUT: %.loc169_16.3: type = converted %bool.make_type.loc169_16, %.loc169_16.2 [template = bool]
  685. // CHECK:STDOUT: }
  686. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  687. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  688. // CHECK:STDOUT: %.loc169_25.1: type = splice_block %.loc169_25.3 [template = bool] {
  689. // CHECK:STDOUT: %bool.make_type.loc169_25: init type = call constants.%Bool() [template = bool]
  690. // CHECK:STDOUT: %.loc169_25.2: type = value_of_initializer %bool.make_type.loc169_25 [template = bool]
  691. // CHECK:STDOUT: %.loc169_25.3: type = converted %bool.make_type.loc169_25, %.loc169_25.2 [template = bool]
  692. // CHECK:STDOUT: }
  693. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  694. // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param runtime_param2
  695. // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
  696. // CHECK:STDOUT: }
  697. // CHECK:STDOUT:
  698. // CHECK:STDOUT: !members:
  699. // CHECK:STDOUT: .F = %F.decl
  700. // CHECK:STDOUT: witness = @FDifferentReturnType.%impl_witness
  701. // CHECK:STDOUT: }
  702. // CHECK:STDOUT:
  703. // CHECK:STDOUT: impl @impl.13: %Self.ref as %J.ref {
  704. // CHECK:STDOUT: %F.decl: %F.type.d19 = fn_decl @F.12 [template = constants.%F.669] {
  705. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  706. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  707. // CHECK:STDOUT: %not_b.patt: bool = binding_pattern not_b
  708. // CHECK:STDOUT: %not_b.param_patt: bool = value_param_pattern %not_b.patt, runtime_param1
  709. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  710. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  711. // CHECK:STDOUT: } {
  712. // CHECK:STDOUT: %bool.make_type.loc183_38: init type = call constants.%Bool() [template = bool]
  713. // CHECK:STDOUT: %.loc183_38.1: type = value_of_initializer %bool.make_type.loc183_38 [template = bool]
  714. // CHECK:STDOUT: %.loc183_38.2: type = converted %bool.make_type.loc183_38, %.loc183_38.1 [template = bool]
  715. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  716. // CHECK:STDOUT: %.loc183_16.1: type = splice_block %.loc183_16.3 [template = bool] {
  717. // CHECK:STDOUT: %bool.make_type.loc183_16: init type = call constants.%Bool() [template = bool]
  718. // CHECK:STDOUT: %.loc183_16.2: type = value_of_initializer %bool.make_type.loc183_16 [template = bool]
  719. // CHECK:STDOUT: %.loc183_16.3: type = converted %bool.make_type.loc183_16, %.loc183_16.2 [template = bool]
  720. // CHECK:STDOUT: }
  721. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  722. // CHECK:STDOUT: %not_b.param: bool = value_param runtime_param1
  723. // CHECK:STDOUT: %.loc183_29.1: type = splice_block %.loc183_29.3 [template = bool] {
  724. // CHECK:STDOUT: %bool.make_type.loc183_29: init type = call constants.%Bool() [template = bool]
  725. // CHECK:STDOUT: %.loc183_29.2: type = value_of_initializer %bool.make_type.loc183_29 [template = bool]
  726. // CHECK:STDOUT: %.loc183_29.3: type = converted %bool.make_type.loc183_29, %.loc183_29.2 [template = bool]
  727. // CHECK:STDOUT: }
  728. // CHECK:STDOUT: %not_b: bool = bind_name not_b, %not_b.param
  729. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  730. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  731. // CHECK:STDOUT: }
  732. // CHECK:STDOUT:
  733. // CHECK:STDOUT: !members:
  734. // CHECK:STDOUT: .F = %F.decl
  735. // CHECK:STDOUT: witness = @FDifferentParamName.%impl_witness
  736. // CHECK:STDOUT: }
  737. // CHECK:STDOUT:
  738. // CHECK:STDOUT: impl @impl.14: %Self.ref as %SelfNested.ref {
  739. // CHECK:STDOUT: %F.decl: %F.type.f90 = fn_decl @F.14 [template = constants.%F.fa8] {
  740. // CHECK:STDOUT: %x.patt: %tuple.type.a7d = binding_pattern x
  741. // CHECK:STDOUT: %x.param_patt: %tuple.type.a7d = value_param_pattern %x.patt, runtime_param0
  742. // CHECK:STDOUT: %return.patt: %array_type.a41 = return_slot_pattern
  743. // CHECK:STDOUT: %return.param_patt: %array_type.a41 = out_param_pattern %return.patt, runtime_param1
  744. // CHECK:STDOUT: } {
  745. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_60: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  746. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  747. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam [template = constants.%array_type.a41]
  748. // CHECK:STDOUT: %x.param: %tuple.type.a7d = value_param runtime_param0
  749. // CHECK:STDOUT: %.loc200_53.1: type = splice_block %.loc200_53.3 [template = constants.%tuple.type.a7d] {
  750. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  751. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam [template = constants.%ptr.4cd]
  752. // CHECK:STDOUT: %int_32.loc200_40: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  753. // CHECK:STDOUT: %i32.loc200_40: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  754. // CHECK:STDOUT: %int_32.loc200_49: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  755. // CHECK:STDOUT: %i32.loc200_49: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  756. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [template = constants.%struct_type.x.y.871]
  757. // CHECK:STDOUT: %.loc200_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  758. // CHECK:STDOUT: %.loc200_53.3: type = converted %.loc200_53.2, constants.%tuple.type.a7d [template = constants.%tuple.type.a7d]
  759. // CHECK:STDOUT: }
  760. // CHECK:STDOUT: %x: %tuple.type.a7d = bind_name x, %x.param
  761. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param runtime_param1
  762. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  763. // CHECK:STDOUT: }
  764. // CHECK:STDOUT:
  765. // CHECK:STDOUT: !members:
  766. // CHECK:STDOUT: .F = %F.decl
  767. // CHECK:STDOUT: witness = @SelfNestedBadParam.%impl_witness
  768. // CHECK:STDOUT: }
  769. // CHECK:STDOUT:
  770. // CHECK:STDOUT: impl @impl.15: %Self.ref as %SelfNested.ref {
  771. // CHECK:STDOUT: %F.decl: %F.type.0e7 = fn_decl @F.15 [template = constants.%F.0bc] {
  772. // CHECK:STDOUT: %x.patt: %tuple.type.eb9 = binding_pattern x
  773. // CHECK:STDOUT: %x.param_patt: %tuple.type.eb9 = value_param_pattern %x.patt, runtime_param0
  774. // CHECK:STDOUT: %return.patt: %array_type.a41 = return_slot_pattern
  775. // CHECK:STDOUT: %return.param_patt: %array_type.a41 = out_param_pattern %return.patt, runtime_param1
  776. // CHECK:STDOUT: } {
  777. // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  778. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  779. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam [template = constants.%array_type.a41]
  780. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param runtime_param0
  781. // CHECK:STDOUT: %.loc213_78.1: type = splice_block %.loc213_78.3 [template = constants.%tuple.type.eb9] {
  782. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc213_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [template = constants.%SelfNestedBadReturnType]
  783. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType [template = constants.%ptr.612]
  784. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc213_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [template = constants.%SelfNestedBadReturnType]
  785. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  786. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  787. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [template = constants.%struct_type.x.y.ac5]
  788. // CHECK:STDOUT: %.loc213_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  789. // CHECK:STDOUT: %.loc213_78.3: type = converted %.loc213_78.2, constants.%tuple.type.eb9 [template = constants.%tuple.type.eb9]
  790. // CHECK:STDOUT: }
  791. // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
  792. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param runtime_param1
  793. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  794. // CHECK:STDOUT: }
  795. // CHECK:STDOUT:
  796. // CHECK:STDOUT: !members:
  797. // CHECK:STDOUT: .F = %F.decl
  798. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%impl_witness
  799. // CHECK:STDOUT: }
  800. // CHECK:STDOUT:
  801. // CHECK:STDOUT: class @NoF {
  802. // CHECK:STDOUT: impl_decl @impl.1 [template] {} {
  803. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [template = constants.%NoF]
  804. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  805. // CHECK:STDOUT: }
  806. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.1]
  807. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  808. // CHECK:STDOUT: complete_type_witness = %complete_type
  809. // CHECK:STDOUT:
  810. // CHECK:STDOUT: !members:
  811. // CHECK:STDOUT: .Self = constants.%NoF
  812. // CHECK:STDOUT: }
  813. // CHECK:STDOUT:
  814. // CHECK:STDOUT: class @FNotFunction {
  815. // CHECK:STDOUT: impl_decl @impl.2 [template] {} {
  816. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [template = constants.%FNotFunction]
  817. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  818. // CHECK:STDOUT: }
  819. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.2]
  820. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  821. // CHECK:STDOUT: complete_type_witness = %complete_type
  822. // CHECK:STDOUT:
  823. // CHECK:STDOUT: !members:
  824. // CHECK:STDOUT: .Self = constants.%FNotFunction
  825. // CHECK:STDOUT: }
  826. // CHECK:STDOUT:
  827. // CHECK:STDOUT: class @F.16;
  828. // CHECK:STDOUT:
  829. // CHECK:STDOUT: class @FAlias {
  830. // CHECK:STDOUT: impl_decl @impl.3 [template] {} {
  831. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [template = constants.%FAlias]
  832. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  833. // CHECK:STDOUT: }
  834. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.3]
  835. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  836. // CHECK:STDOUT: complete_type_witness = %complete_type
  837. // CHECK:STDOUT:
  838. // CHECK:STDOUT: !members:
  839. // CHECK:STDOUT: .Self = constants.%FAlias
  840. // CHECK:STDOUT: }
  841. // CHECK:STDOUT:
  842. // CHECK:STDOUT: class @FExtraParam {
  843. // CHECK:STDOUT: impl_decl @impl.4 [template] {} {
  844. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [template = constants.%FExtraParam]
  845. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  846. // CHECK:STDOUT: }
  847. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.4]
  848. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  849. // CHECK:STDOUT: complete_type_witness = %complete_type
  850. // CHECK:STDOUT:
  851. // CHECK:STDOUT: !members:
  852. // CHECK:STDOUT: .Self = constants.%FExtraParam
  853. // CHECK:STDOUT: }
  854. // CHECK:STDOUT:
  855. // CHECK:STDOUT: class @FExtraImplicitParam {
  856. // CHECK:STDOUT: impl_decl @impl.5 [template] {} {
  857. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [template = constants.%FExtraImplicitParam]
  858. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  859. // CHECK:STDOUT: }
  860. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.5]
  861. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  862. // CHECK:STDOUT: complete_type_witness = %complete_type
  863. // CHECK:STDOUT:
  864. // CHECK:STDOUT: !members:
  865. // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
  866. // CHECK:STDOUT: }
  867. // CHECK:STDOUT:
  868. // CHECK:STDOUT: class @FExtraReturnType {
  869. // CHECK:STDOUT: impl_decl @impl.6 [template] {} {
  870. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [template = constants.%FExtraReturnType]
  871. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  872. // CHECK:STDOUT: }
  873. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.6]
  874. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  875. // CHECK:STDOUT: complete_type_witness = %complete_type
  876. // CHECK:STDOUT:
  877. // CHECK:STDOUT: !members:
  878. // CHECK:STDOUT: .Self = constants.%FExtraReturnType
  879. // CHECK:STDOUT: }
  880. // CHECK:STDOUT:
  881. // CHECK:STDOUT: class @FMissingParam {
  882. // CHECK:STDOUT: impl_decl @impl.7 [template] {} {
  883. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [template = constants.%FMissingParam]
  884. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  885. // CHECK:STDOUT: }
  886. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.7]
  887. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  888. // CHECK:STDOUT: complete_type_witness = %complete_type
  889. // CHECK:STDOUT:
  890. // CHECK:STDOUT: !members:
  891. // CHECK:STDOUT: .Self = constants.%FMissingParam
  892. // CHECK:STDOUT: }
  893. // CHECK:STDOUT:
  894. // CHECK:STDOUT: class @FMissingImplicitParam {
  895. // CHECK:STDOUT: impl_decl @impl.8 [template] {} {
  896. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [template = constants.%FMissingImplicitParam]
  897. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  898. // CHECK:STDOUT: }
  899. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.8]
  900. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  901. // CHECK:STDOUT: complete_type_witness = %complete_type
  902. // CHECK:STDOUT:
  903. // CHECK:STDOUT: !members:
  904. // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
  905. // CHECK:STDOUT: }
  906. // CHECK:STDOUT:
  907. // CHECK:STDOUT: class @FMissingReturnType {
  908. // CHECK:STDOUT: impl_decl @impl.9 [template] {} {
  909. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [template = constants.%FMissingReturnType]
  910. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  911. // CHECK:STDOUT: }
  912. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.9]
  913. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  914. // CHECK:STDOUT: complete_type_witness = %complete_type
  915. // CHECK:STDOUT:
  916. // CHECK:STDOUT: !members:
  917. // CHECK:STDOUT: .Self = constants.%FMissingReturnType
  918. // CHECK:STDOUT: }
  919. // CHECK:STDOUT:
  920. // CHECK:STDOUT: class @FDifferentParamType {
  921. // CHECK:STDOUT: impl_decl @impl.10 [template] {} {
  922. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [template = constants.%FDifferentParamType]
  923. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  924. // CHECK:STDOUT: }
  925. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.10]
  926. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  927. // CHECK:STDOUT: complete_type_witness = %complete_type
  928. // CHECK:STDOUT:
  929. // CHECK:STDOUT: !members:
  930. // CHECK:STDOUT: .Self = constants.%FDifferentParamType
  931. // CHECK:STDOUT: }
  932. // CHECK:STDOUT:
  933. // CHECK:STDOUT: class @FDifferentImplicitParamType {
  934. // CHECK:STDOUT: impl_decl @impl.11 [template] {} {
  935. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType]
  936. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  937. // CHECK:STDOUT: }
  938. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.11]
  939. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  940. // CHECK:STDOUT: complete_type_witness = %complete_type
  941. // CHECK:STDOUT:
  942. // CHECK:STDOUT: !members:
  943. // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
  944. // CHECK:STDOUT: }
  945. // CHECK:STDOUT:
  946. // CHECK:STDOUT: class @FDifferentReturnType {
  947. // CHECK:STDOUT: impl_decl @impl.12 [template] {} {
  948. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [template = constants.%FDifferentReturnType]
  949. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  950. // CHECK:STDOUT: }
  951. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.12]
  952. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  953. // CHECK:STDOUT: complete_type_witness = %complete_type
  954. // CHECK:STDOUT:
  955. // CHECK:STDOUT: !members:
  956. // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
  957. // CHECK:STDOUT: }
  958. // CHECK:STDOUT:
  959. // CHECK:STDOUT: class @FDifferentParamName {
  960. // CHECK:STDOUT: impl_decl @impl.13 [template] {} {
  961. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamName [template = constants.%FDifferentParamName]
  962. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  963. // CHECK:STDOUT: }
  964. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.13]
  965. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  966. // CHECK:STDOUT: complete_type_witness = %complete_type
  967. // CHECK:STDOUT:
  968. // CHECK:STDOUT: !members:
  969. // CHECK:STDOUT: .Self = constants.%FDifferentParamName
  970. // CHECK:STDOUT: }
  971. // CHECK:STDOUT:
  972. // CHECK:STDOUT: class @SelfNestedBadParam {
  973. // CHECK:STDOUT: impl_decl @impl.14 [template] {} {
  974. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [template = constants.%SelfNestedBadParam]
  975. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [template = constants.%SelfNested.type]
  976. // CHECK:STDOUT: }
  977. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.14]
  978. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  979. // CHECK:STDOUT: complete_type_witness = %complete_type
  980. // CHECK:STDOUT:
  981. // CHECK:STDOUT: !members:
  982. // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
  983. // CHECK:STDOUT: }
  984. // CHECK:STDOUT:
  985. // CHECK:STDOUT: class @SelfNestedBadReturnType {
  986. // CHECK:STDOUT: impl_decl @impl.15 [template] {} {
  987. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [template = constants.%SelfNestedBadReturnType]
  988. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [template = constants.%SelfNested.type]
  989. // CHECK:STDOUT: }
  990. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.15]
  991. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  992. // CHECK:STDOUT: complete_type_witness = %complete_type
  993. // CHECK:STDOUT:
  994. // CHECK:STDOUT: !members:
  995. // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
  996. // CHECK:STDOUT: }
  997. // CHECK:STDOUT:
  998. // CHECK:STDOUT: generic fn @F.1(@I.%Self: %I.type) {
  999. // CHECK:STDOUT: fn();
  1000. // CHECK:STDOUT: }
  1001. // CHECK:STDOUT:
  1002. // CHECK:STDOUT: fn @PossiblyF();
  1003. // CHECK:STDOUT:
  1004. // CHECK:STDOUT: fn @F.2(%b.param_patt: bool);
  1005. // CHECK:STDOUT:
  1006. // CHECK:STDOUT: fn @F.3[%self.param_patt: %FExtraImplicitParam]();
  1007. // CHECK:STDOUT:
  1008. // CHECK:STDOUT: fn @F.4() -> bool;
  1009. // CHECK:STDOUT:
  1010. // CHECK:STDOUT: generic fn @F.5(@J.%Self: %J.type) {
  1011. // CHECK:STDOUT: fn[%self.param_patt: bool](%b.param_patt: bool) -> bool;
  1012. // CHECK:STDOUT: }
  1013. // CHECK:STDOUT:
  1014. // CHECK:STDOUT: fn @F.6[%self.param_patt: bool]() -> bool;
  1015. // CHECK:STDOUT:
  1016. // CHECK:STDOUT: fn @F.7(%b.param_patt: bool) -> bool;
  1017. // CHECK:STDOUT:
  1018. // CHECK:STDOUT: fn @F.8[%self.param_patt: bool](%b.param_patt: bool);
  1019. // CHECK:STDOUT:
  1020. // CHECK:STDOUT: fn @F.9[%self.param_patt: bool](%b.param_patt: %FDifferentParamType) -> bool;
  1021. // CHECK:STDOUT:
  1022. // CHECK:STDOUT: fn @F.10[%self.param_patt: %FDifferentImplicitParamType](%b.param_patt: bool) -> bool;
  1023. // CHECK:STDOUT:
  1024. // CHECK:STDOUT: fn @F.11[%self.param_patt: bool](%b.param_patt: bool) -> %FDifferentReturnType;
  1025. // CHECK:STDOUT:
  1026. // CHECK:STDOUT: fn @F.12[%self.param_patt: bool](%not_b.param_patt: bool) -> bool;
  1027. // CHECK:STDOUT:
  1028. // CHECK:STDOUT: generic fn @F.13(@SelfNested.%Self: %SelfNested.type) {
  1029. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.2ff)]
  1030. // CHECK:STDOUT: %Self.as_type.loc188_16.1: type = facet_access_type %Self [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  1031. // CHECK:STDOUT: %ptr.loc188_16.1: type = ptr_type @F.13.%Self.as_type.loc188_16.1 (%Self.as_type) [symbolic = %ptr.loc188_16.1 (constants.%ptr.e87)]
  1032. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1: type = struct_type {.x: @F.13.%Self.as_type.loc188_16.1 (%Self.as_type), .y: %i32} [symbolic = %struct_type.x.y.loc188_37.1 (constants.%struct_type.x.y.81e)]
  1033. // CHECK:STDOUT: %tuple.type: type = tuple_type (@F.13.%ptr.loc188_16.1 (%ptr.e87), @F.13.%struct_type.x.y.loc188_37.1 (%struct_type.x.y.81e)) [symbolic = %tuple.type (constants.%tuple.type.229)]
  1034. // CHECK:STDOUT: %array_type.loc188_52.1: type = array_type constants.%int_4, @F.13.%Self.as_type.loc188_16.1 (%Self.as_type) [symbolic = %array_type.loc188_52.1 (constants.%array_type.873)]
  1035. // CHECK:STDOUT:
  1036. // CHECK:STDOUT: fn(%x.param_patt: @F.13.%tuple.type (%tuple.type.229)) -> @F.13.%array_type.loc188_52.1 (%array_type.873);
  1037. // CHECK:STDOUT: }
  1038. // CHECK:STDOUT:
  1039. // CHECK:STDOUT: fn @F.14(%x.param_patt: %tuple.type.a7d) -> %array_type.a41;
  1040. // CHECK:STDOUT:
  1041. // CHECK:STDOUT: fn @F.15(%x.param_patt: %tuple.type.eb9) -> %array_type.a41;
  1042. // CHECK:STDOUT:
  1043. // CHECK:STDOUT: specific @F.1(constants.%Self.826) {}
  1044. // CHECK:STDOUT:
  1045. // CHECK:STDOUT: specific @F.1(constants.%I.facet.3bf) {}
  1046. // CHECK:STDOUT:
  1047. // CHECK:STDOUT: specific @F.1(constants.%I.facet.33b) {}
  1048. // CHECK:STDOUT:
  1049. // CHECK:STDOUT: specific @F.1(constants.%I.facet.fad) {}
  1050. // CHECK:STDOUT:
  1051. // CHECK:STDOUT: specific @F.5(constants.%Self.ccd) {}
  1052. // CHECK:STDOUT:
  1053. // CHECK:STDOUT: specific @F.5(constants.%J.facet.515) {}
  1054. // CHECK:STDOUT:
  1055. // CHECK:STDOUT: specific @F.5(constants.%J.facet.f88) {}
  1056. // CHECK:STDOUT:
  1057. // CHECK:STDOUT: specific @F.5(constants.%J.facet.43b) {}
  1058. // CHECK:STDOUT:
  1059. // CHECK:STDOUT: specific @F.5(constants.%J.facet.9b0) {}
  1060. // CHECK:STDOUT:
  1061. // CHECK:STDOUT: specific @F.5(constants.%J.facet.4bb) {}
  1062. // CHECK:STDOUT:
  1063. // CHECK:STDOUT: specific @F.5(constants.%J.facet.5c7) {}
  1064. // CHECK:STDOUT:
  1065. // CHECK:STDOUT: specific @F.5(constants.%J.facet.daf) {}
  1066. // CHECK:STDOUT:
  1067. // CHECK:STDOUT: specific @F.13(constants.%Self.2ff) {
  1068. // CHECK:STDOUT: %Self => constants.%Self.2ff
  1069. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%Self.as_type
  1070. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.e87
  1071. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.81e
  1072. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.229
  1073. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.873
  1074. // CHECK:STDOUT: }
  1075. // CHECK:STDOUT:
  1076. // CHECK:STDOUT: specific @F.13(constants.%SelfNested.facet.61c) {
  1077. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.61c
  1078. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%SelfNestedBadParam
  1079. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.4cd
  1080. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.a89
  1081. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.9c9
  1082. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.a41
  1083. // CHECK:STDOUT: }
  1084. // CHECK:STDOUT:
  1085. // CHECK:STDOUT: specific @F.13(constants.%SelfNested.facet.01f) {
  1086. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.01f
  1087. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%SelfNestedBadReturnType
  1088. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.612
  1089. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.ac5
  1090. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.eb9
  1091. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.126
  1092. // CHECK:STDOUT: }
  1093. // CHECK:STDOUT: