fail_impl_bad_assoc_fn.carbon 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  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 [ImplAssociatedFunctionHere]
  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 [ImplAssociatedFunctionHere]
  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 [ImplAssociatedFunctionHere]
  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+6]]: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. fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> [SelfNestedBadParam; 4];
  194. }
  195. }
  196. // CHECK:STDOUT: --- fail_impl_bad_assoc_fn.carbon
  197. // CHECK:STDOUT:
  198. // CHECK:STDOUT: constants {
  199. // CHECK:STDOUT: %I.type: type = facet_type <@I> [template]
  200. // CHECK:STDOUT: %Self.fb7: %I.type = bind_symbolic_name Self, 0 [symbolic]
  201. // CHECK:STDOUT: %F.type.9df: type = fn_type @F.1 [template]
  202. // CHECK:STDOUT: %F.478: %F.type.9df = struct_value () [template]
  203. // CHECK:STDOUT: %F.assoc_type.5f5: type = assoc_entity_type %I.type, %F.type.9df [template]
  204. // CHECK:STDOUT: %assoc0.389: %F.assoc_type.5f5 = assoc_entity element0, @I.%F.decl [template]
  205. // CHECK:STDOUT: %NoF: type = class_type @NoF [template]
  206. // CHECK:STDOUT: %impl_witness.85bcb7.1: <witness> = impl_witness (<error>) [template]
  207. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [template]
  208. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [template]
  209. // CHECK:STDOUT: %FNotFunction: type = class_type @FNotFunction [template]
  210. // CHECK:STDOUT: %impl_witness.85bcb7.2: <witness> = impl_witness (<error>) [template]
  211. // CHECK:STDOUT: %F.25a: type = class_type @F.16 [template]
  212. // CHECK:STDOUT: %PossiblyF.type: type = fn_type @PossiblyF [template]
  213. // CHECK:STDOUT: %PossiblyF: %PossiblyF.type = struct_value () [template]
  214. // CHECK:STDOUT: %FAlias: type = class_type @FAlias [template]
  215. // CHECK:STDOUT: %impl_witness.85bcb7.3: <witness> = impl_witness (<error>) [template]
  216. // CHECK:STDOUT: %FExtraParam: type = class_type @FExtraParam [template]
  217. // CHECK:STDOUT: %impl_witness.85bcb7.4: <witness> = impl_witness (<error>) [template]
  218. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
  219. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
  220. // CHECK:STDOUT: %F.type.b6e: type = fn_type @F.2 [template]
  221. // CHECK:STDOUT: %F.081: %F.type.b6e = struct_value () [template]
  222. // CHECK:STDOUT: %I.facet.3bf: %I.type = facet_value %FExtraParam, %impl_witness.85bcb7.4 [template]
  223. // CHECK:STDOUT: %FExtraImplicitParam: type = class_type @FExtraImplicitParam [template]
  224. // CHECK:STDOUT: %impl_witness.85bcb7.5: <witness> = impl_witness (<error>) [template]
  225. // CHECK:STDOUT: %F.type.a8b: type = fn_type @F.3 [template]
  226. // CHECK:STDOUT: %F.bf5: %F.type.a8b = struct_value () [template]
  227. // CHECK:STDOUT: %I.facet.33b: %I.type = facet_value %FExtraImplicitParam, %impl_witness.85bcb7.5 [template]
  228. // CHECK:STDOUT: %FExtraReturnType: type = class_type @FExtraReturnType [template]
  229. // CHECK:STDOUT: %impl_witness.85bcb7.6: <witness> = impl_witness (<error>) [template]
  230. // CHECK:STDOUT: %F.type.60d: type = fn_type @F.4 [template]
  231. // CHECK:STDOUT: %F.ae3: %F.type.60d = struct_value () [template]
  232. // CHECK:STDOUT: %I.facet.fad: %I.type = facet_value %FExtraReturnType, %impl_witness.85bcb7.6 [template]
  233. // CHECK:STDOUT: %J.type: type = facet_type <@J> [template]
  234. // CHECK:STDOUT: %Self.f9f: %J.type = bind_symbolic_name Self, 0 [symbolic]
  235. // CHECK:STDOUT: %F.type.b65: type = fn_type @F.5 [template]
  236. // CHECK:STDOUT: %F.83e: %F.type.b65 = struct_value () [template]
  237. // CHECK:STDOUT: %F.assoc_type.60d: type = assoc_entity_type %J.type, %F.type.b65 [template]
  238. // CHECK:STDOUT: %assoc0.03a: %F.assoc_type.60d = assoc_entity element0, @J.%F.decl [template]
  239. // CHECK:STDOUT: %FMissingParam: type = class_type @FMissingParam [template]
  240. // CHECK:STDOUT: %impl_witness.85bcb7.7: <witness> = impl_witness (<error>) [template]
  241. // CHECK:STDOUT: %F.type.254: type = fn_type @F.6 [template]
  242. // CHECK:STDOUT: %F.3dd: %F.type.254 = struct_value () [template]
  243. // CHECK:STDOUT: %J.facet.515: %J.type = facet_value %FMissingParam, %impl_witness.85bcb7.7 [template]
  244. // CHECK:STDOUT: %FMissingImplicitParam: type = class_type @FMissingImplicitParam [template]
  245. // CHECK:STDOUT: %impl_witness.85bcb7.8: <witness> = impl_witness (<error>) [template]
  246. // CHECK:STDOUT: %F.type.a49: type = fn_type @F.7 [template]
  247. // CHECK:STDOUT: %F.95b: %F.type.a49 = struct_value () [template]
  248. // CHECK:STDOUT: %J.facet.f88: %J.type = facet_value %FMissingImplicitParam, %impl_witness.85bcb7.8 [template]
  249. // CHECK:STDOUT: %FMissingReturnType: type = class_type @FMissingReturnType [template]
  250. // CHECK:STDOUT: %impl_witness.85bcb7.9: <witness> = impl_witness (<error>) [template]
  251. // CHECK:STDOUT: %F.type.bc5: type = fn_type @F.8 [template]
  252. // CHECK:STDOUT: %F.d2b: %F.type.bc5 = struct_value () [template]
  253. // CHECK:STDOUT: %J.facet.43b: %J.type = facet_value %FMissingReturnType, %impl_witness.85bcb7.9 [template]
  254. // CHECK:STDOUT: %FDifferentParamType: type = class_type @FDifferentParamType [template]
  255. // CHECK:STDOUT: %impl_witness.85bcb7.10: <witness> = impl_witness (<error>) [template]
  256. // CHECK:STDOUT: %F.type.f00: type = fn_type @F.9 [template]
  257. // CHECK:STDOUT: %F.a37: %F.type.f00 = struct_value () [template]
  258. // CHECK:STDOUT: %J.facet.9b0: %J.type = facet_value %FDifferentParamType, %impl_witness.85bcb7.10 [template]
  259. // CHECK:STDOUT: %FDifferentImplicitParamType: type = class_type @FDifferentImplicitParamType [template]
  260. // CHECK:STDOUT: %impl_witness.85bcb7.11: <witness> = impl_witness (<error>) [template]
  261. // CHECK:STDOUT: %F.type.c1a: type = fn_type @F.10 [template]
  262. // CHECK:STDOUT: %F.edd: %F.type.c1a = struct_value () [template]
  263. // CHECK:STDOUT: %J.facet.4bb: %J.type = facet_value %FDifferentImplicitParamType, %impl_witness.85bcb7.11 [template]
  264. // CHECK:STDOUT: %FDifferentReturnType: type = class_type @FDifferentReturnType [template]
  265. // CHECK:STDOUT: %impl_witness.85bcb7.12: <witness> = impl_witness (<error>) [template]
  266. // CHECK:STDOUT: %F.type.bad: type = fn_type @F.11 [template]
  267. // CHECK:STDOUT: %F.6df: %F.type.bad = struct_value () [template]
  268. // CHECK:STDOUT: %J.facet.5c7: %J.type = facet_value %FDifferentReturnType, %impl_witness.85bcb7.12 [template]
  269. // CHECK:STDOUT: %FDifferentParamName: type = class_type @FDifferentParamName [template]
  270. // CHECK:STDOUT: %impl_witness.85bcb7.13: <witness> = impl_witness (<error>) [template]
  271. // CHECK:STDOUT: %F.type.b18: type = fn_type @F.12 [template]
  272. // CHECK:STDOUT: %F.ada: %F.type.b18 = struct_value () [template]
  273. // CHECK:STDOUT: %J.facet.daf: %J.type = facet_value %FDifferentParamName, %impl_witness.85bcb7.13 [template]
  274. // CHECK:STDOUT: %SelfNested.type: type = facet_type <@SelfNested> [template]
  275. // CHECK:STDOUT: %Self.36c: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic]
  276. // CHECK:STDOUT: %Self.as_type: type = facet_access_type %Self.36c [symbolic]
  277. // CHECK:STDOUT: %ptr.af7: type = ptr_type %Self.as_type [symbolic]
  278. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template]
  279. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [template]
  280. // CHECK:STDOUT: %struct_type.x.y.a57: type = struct_type {.x: %Self.as_type, .y: %i32} [symbolic]
  281. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [template]
  282. // CHECK:STDOUT: %tuple.type.5f6: type = tuple_type (%ptr.af7, %struct_type.x.y.a57) [symbolic]
  283. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template]
  284. // CHECK:STDOUT: %array_type.126f: type = array_type %int_4, %Self.as_type [symbolic]
  285. // CHECK:STDOUT: %F.type.f33: type = fn_type @F.13 [template]
  286. // CHECK:STDOUT: %F.04f: %F.type.f33 = struct_value () [template]
  287. // CHECK:STDOUT: %F.assoc_type.c02: type = assoc_entity_type %SelfNested.type, %F.type.f33 [template]
  288. // CHECK:STDOUT: %assoc0.b35: %F.assoc_type.c02 = assoc_entity element0, @SelfNested.%F.decl [template]
  289. // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [template]
  290. // CHECK:STDOUT: %impl_witness.85bcb7.14: <witness> = impl_witness (<error>) [template]
  291. // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [template]
  292. // CHECK:STDOUT: %struct_type.x.y.f68: type = struct_type {.x: %i32, .y: %i32} [template]
  293. // CHECK:STDOUT: %tuple.type.0cf: type = tuple_type (%ptr.4cd, %struct_type.x.y.f68) [template]
  294. // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [template]
  295. // CHECK:STDOUT: %F.type.965: type = fn_type @F.14 [template]
  296. // CHECK:STDOUT: %F.f18: %F.type.965 = struct_value () [template]
  297. // CHECK:STDOUT: %SelfNested.facet.61c: %SelfNested.type = facet_value %SelfNestedBadParam, %impl_witness.85bcb7.14 [template]
  298. // CHECK:STDOUT: %struct_type.x.y.110: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [template]
  299. // CHECK:STDOUT: %tuple.type.aa1: type = tuple_type (%ptr.4cd, %struct_type.x.y.110) [template]
  300. // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [template]
  301. // CHECK:STDOUT: %impl_witness.85bcb7.15: <witness> = impl_witness (<error>) [template]
  302. // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [template]
  303. // CHECK:STDOUT: %struct_type.x.y.d53: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [template]
  304. // CHECK:STDOUT: %tuple.type.ff1: type = tuple_type (%ptr.612, %struct_type.x.y.d53) [template]
  305. // CHECK:STDOUT: %F.type.3e7: type = fn_type @F.15 [template]
  306. // CHECK:STDOUT: %F.be8: %F.type.3e7 = struct_value () [template]
  307. // CHECK:STDOUT: %SelfNested.facet.01f: %SelfNested.type = facet_value %SelfNestedBadReturnType, %impl_witness.85bcb7.15 [template]
  308. // CHECK:STDOUT: %array_type.126b: type = array_type %int_4, %SelfNestedBadReturnType [template]
  309. // CHECK:STDOUT: }
  310. // CHECK:STDOUT:
  311. // CHECK:STDOUT: imports {
  312. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  313. // CHECK:STDOUT: .Bool = %import_ref.f7c
  314. // CHECK:STDOUT: .Int = %import_ref.187
  315. // CHECK:STDOUT: import Core//prelude
  316. // CHECK:STDOUT: import Core//prelude/...
  317. // CHECK:STDOUT: }
  318. // CHECK:STDOUT: }
  319. // CHECK:STDOUT:
  320. // CHECK:STDOUT: file {
  321. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  322. // CHECK:STDOUT: .Core = imports.%Core
  323. // CHECK:STDOUT: .I = %I.decl
  324. // CHECK:STDOUT: .NoF = %NoF.decl
  325. // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
  326. // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
  327. // CHECK:STDOUT: .FAlias = %FAlias.decl
  328. // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
  329. // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
  330. // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
  331. // CHECK:STDOUT: .J = %J.decl
  332. // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
  333. // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
  334. // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
  335. // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
  336. // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
  337. // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
  338. // CHECK:STDOUT: .FDifferentParamName = %FDifferentParamName.decl
  339. // CHECK:STDOUT: .SelfNested = %SelfNested.decl
  340. // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
  341. // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
  342. // CHECK:STDOUT: }
  343. // CHECK:STDOUT: %Core.import = import Core
  344. // CHECK:STDOUT: %I.decl: type = interface_decl @I [template = constants.%I.type] {} {}
  345. // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [template = constants.%NoF] {} {}
  346. // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [template = constants.%FNotFunction] {} {}
  347. // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [template = constants.%PossiblyF] {} {}
  348. // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [template = constants.%FAlias] {} {}
  349. // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [template = constants.%FExtraParam] {} {}
  350. // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [template = constants.%FExtraImplicitParam] {} {}
  351. // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [template = constants.%FExtraReturnType] {} {}
  352. // CHECK:STDOUT: %J.decl: type = interface_decl @J [template = constants.%J.type] {} {}
  353. // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [template = constants.%FMissingParam] {} {}
  354. // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [template = constants.%FMissingImplicitParam] {} {}
  355. // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [template = constants.%FMissingReturnType] {} {}
  356. // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [template = constants.%FDifferentParamType] {} {}
  357. // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType] {} {}
  358. // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [template = constants.%FDifferentReturnType] {} {}
  359. // CHECK:STDOUT: %FDifferentParamName.decl: type = class_decl @FDifferentParamName [template = constants.%FDifferentParamName] {} {}
  360. // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [template = constants.%SelfNested.type] {} {}
  361. // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [template = constants.%SelfNestedBadParam] {} {}
  362. // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [template = constants.%SelfNestedBadReturnType] {} {}
  363. // CHECK:STDOUT: }
  364. // CHECK:STDOUT:
  365. // CHECK:STDOUT: interface @I {
  366. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.fb7]
  367. // CHECK:STDOUT: %F.decl: %F.type.9df = fn_decl @F.1 [template = constants.%F.478] {} {}
  368. // CHECK:STDOUT: %assoc0: %F.assoc_type.5f5 = assoc_entity element0, %F.decl [template = constants.%assoc0.389]
  369. // CHECK:STDOUT:
  370. // CHECK:STDOUT: !members:
  371. // CHECK:STDOUT: .Self = %Self
  372. // CHECK:STDOUT: .F = %assoc0
  373. // CHECK:STDOUT: witness = (%F.decl)
  374. // CHECK:STDOUT: }
  375. // CHECK:STDOUT:
  376. // CHECK:STDOUT: interface @J {
  377. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.f9f]
  378. // CHECK:STDOUT: %F.decl: %F.type.b65 = fn_decl @F.5 [template = constants.%F.83e] {
  379. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  380. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  381. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  382. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  383. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  384. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  385. // CHECK:STDOUT: } {
  386. // CHECK:STDOUT: %bool.make_type.loc93_44: init type = call constants.%Bool() [template = bool]
  387. // CHECK:STDOUT: %.loc93_44.1: type = value_of_initializer %bool.make_type.loc93_44 [template = bool]
  388. // CHECK:STDOUT: %.loc93_44.2: type = converted %bool.make_type.loc93_44, %.loc93_44.1 [template = bool]
  389. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  390. // CHECK:STDOUT: %.loc93_26.1: type = splice_block %.loc93_26.3 [template = bool] {
  391. // CHECK:STDOUT: %bool.make_type.loc93_26: init type = call constants.%Bool() [template = bool]
  392. // CHECK:STDOUT: %.loc93_26.2: type = value_of_initializer %bool.make_type.loc93_26 [template = bool]
  393. // CHECK:STDOUT: %.loc93_26.3: type = converted %bool.make_type.loc93_26, %.loc93_26.2 [template = bool]
  394. // CHECK:STDOUT: }
  395. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  396. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  397. // CHECK:STDOUT: %.loc93_35.1: type = splice_block %.loc93_35.3 [template = bool] {
  398. // CHECK:STDOUT: %bool.make_type.loc93_35: init type = call constants.%Bool() [template = bool]
  399. // CHECK:STDOUT: %.loc93_35.2: type = value_of_initializer %bool.make_type.loc93_35 [template = bool]
  400. // CHECK:STDOUT: %.loc93_35.3: type = converted %bool.make_type.loc93_35, %.loc93_35.2 [template = bool]
  401. // CHECK:STDOUT: }
  402. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  403. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  404. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  405. // CHECK:STDOUT: }
  406. // CHECK:STDOUT: %assoc0: %F.assoc_type.60d = assoc_entity element0, %F.decl [template = constants.%assoc0.03a]
  407. // CHECK:STDOUT:
  408. // CHECK:STDOUT: !members:
  409. // CHECK:STDOUT: .Self = %Self
  410. // CHECK:STDOUT: .F = %assoc0
  411. // CHECK:STDOUT: witness = (%F.decl)
  412. // CHECK:STDOUT: }
  413. // CHECK:STDOUT:
  414. // CHECK:STDOUT: interface @SelfNested {
  415. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.36c]
  416. // CHECK:STDOUT: %F.decl: %F.type.f33 = fn_decl @F.13 [template = constants.%F.04f] {
  417. // CHECK:STDOUT: %x.patt: @F.13.%tuple.type (%tuple.type.5f6) = binding_pattern x
  418. // CHECK:STDOUT: %x.param_patt: @F.13.%tuple.type (%tuple.type.5f6) = value_param_pattern %x.patt, runtime_param0
  419. // CHECK:STDOUT: %return.patt: @F.13.%array_type.loc188_52.1 (%array_type.126f) = return_slot_pattern
  420. // CHECK:STDOUT: %return.param_patt: @F.13.%array_type.loc188_52.1 (%array_type.126f) = out_param_pattern %return.patt, runtime_param1
  421. // CHECK:STDOUT: } {
  422. // CHECK:STDOUT: %Self.ref.loc188_45: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.36c)]
  423. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  424. // 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)]
  425. // 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)]
  426. // CHECK:STDOUT: %array_type.loc188_52.2: type = array_type %int_4, %Self.as_type [symbolic = %array_type.loc188_52.1 (constants.%array_type.126f)]
  427. // CHECK:STDOUT: %x.param: @F.13.%tuple.type (%tuple.type.5f6) = value_param runtime_param0
  428. // CHECK:STDOUT: %.loc188_38.1: type = splice_block %.loc188_38.3 [symbolic = %tuple.type (constants.%tuple.type.5f6)] {
  429. // CHECK:STDOUT: %Self.ref.loc188_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.36c)]
  430. // 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)]
  431. // 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)]
  432. // CHECK:STDOUT: %ptr.loc188_16.2: type = ptr_type %Self.as_type [symbolic = %ptr.loc188_16.1 (constants.%ptr.af7)]
  433. // CHECK:STDOUT: %Self.ref.loc188_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.36c)]
  434. // 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)]
  435. // 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)]
  436. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  437. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  438. // 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.a57)]
  439. // CHECK:STDOUT: %.loc188_38.2: %tuple.type.24b = tuple_literal (%ptr.loc188_16.2, %struct_type.x.y.loc188_37.2)
  440. // CHECK:STDOUT: %.loc188_38.3: type = converted %.loc188_38.2, constants.%tuple.type.5f6 [symbolic = %tuple.type (constants.%tuple.type.5f6)]
  441. // CHECK:STDOUT: }
  442. // CHECK:STDOUT: %x: @F.13.%tuple.type (%tuple.type.5f6) = bind_name x, %x.param
  443. // CHECK:STDOUT: %return.param: ref @F.13.%array_type.loc188_52.1 (%array_type.126f) = out_param runtime_param1
  444. // CHECK:STDOUT: %return: ref @F.13.%array_type.loc188_52.1 (%array_type.126f) = return_slot %return.param
  445. // CHECK:STDOUT: }
  446. // CHECK:STDOUT: %assoc0: %F.assoc_type.c02 = assoc_entity element0, %F.decl [template = constants.%assoc0.b35]
  447. // CHECK:STDOUT:
  448. // CHECK:STDOUT: !members:
  449. // CHECK:STDOUT: .Self = %Self
  450. // CHECK:STDOUT: .F = %assoc0
  451. // CHECK:STDOUT: witness = (%F.decl)
  452. // CHECK:STDOUT: }
  453. // CHECK:STDOUT:
  454. // CHECK:STDOUT: impl @impl.1: %Self.ref as %I.ref {
  455. // CHECK:STDOUT: !members:
  456. // CHECK:STDOUT: witness = @NoF.%impl_witness
  457. // CHECK:STDOUT: }
  458. // CHECK:STDOUT:
  459. // CHECK:STDOUT: impl @impl.2: %Self.ref as %I.ref {
  460. // CHECK:STDOUT: %F.decl: type = class_decl @F.16 [template = constants.%F.25a] {} {}
  461. // CHECK:STDOUT:
  462. // CHECK:STDOUT: !members:
  463. // CHECK:STDOUT: .F = %F.decl
  464. // CHECK:STDOUT: witness = @FNotFunction.%impl_witness
  465. // CHECK:STDOUT: }
  466. // CHECK:STDOUT:
  467. // CHECK:STDOUT: impl @impl.3: %Self.ref as %I.ref {
  468. // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [template = constants.%PossiblyF]
  469. // CHECK:STDOUT: %F: %PossiblyF.type = bind_alias F, file.%PossiblyF.decl [template = constants.%PossiblyF]
  470. // CHECK:STDOUT:
  471. // CHECK:STDOUT: !members:
  472. // CHECK:STDOUT: .F = %F
  473. // CHECK:STDOUT: witness = @FAlias.%impl_witness
  474. // CHECK:STDOUT: }
  475. // CHECK:STDOUT:
  476. // CHECK:STDOUT: impl @impl.4: %Self.ref as %I.ref {
  477. // CHECK:STDOUT: %F.decl: %F.type.b6e = fn_decl @F.2 [template = constants.%F.081] {
  478. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  479. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param0
  480. // CHECK:STDOUT: } {
  481. // CHECK:STDOUT: %b.param: bool = value_param runtime_param0
  482. // CHECK:STDOUT: %.loc62_13.1: type = splice_block %.loc62_13.3 [template = bool] {
  483. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  484. // CHECK:STDOUT: %.loc62_13.2: type = value_of_initializer %bool.make_type [template = bool]
  485. // CHECK:STDOUT: %.loc62_13.3: type = converted %bool.make_type, %.loc62_13.2 [template = bool]
  486. // CHECK:STDOUT: }
  487. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  488. // CHECK:STDOUT: }
  489. // CHECK:STDOUT:
  490. // CHECK:STDOUT: !members:
  491. // CHECK:STDOUT: .F = %F.decl
  492. // CHECK:STDOUT: witness = @FExtraParam.%impl_witness
  493. // CHECK:STDOUT: }
  494. // CHECK:STDOUT:
  495. // CHECK:STDOUT: impl @impl.5: %Self.ref as %I.ref {
  496. // CHECK:STDOUT: %F.decl: %F.type.a8b = fn_decl @F.3 [template = constants.%F.bf5] {
  497. // CHECK:STDOUT: %self.patt: %FExtraImplicitParam = binding_pattern self
  498. // CHECK:STDOUT: %self.param_patt: %FExtraImplicitParam = value_param_pattern %self.patt, runtime_param0
  499. // CHECK:STDOUT: } {
  500. // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param runtime_param0
  501. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [template = constants.%FExtraImplicitParam]
  502. // CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param
  503. // CHECK:STDOUT: }
  504. // CHECK:STDOUT:
  505. // CHECK:STDOUT: !members:
  506. // CHECK:STDOUT: .F = %F.decl
  507. // CHECK:STDOUT: witness = @FExtraImplicitParam.%impl_witness
  508. // CHECK:STDOUT: }
  509. // CHECK:STDOUT:
  510. // CHECK:STDOUT: impl @impl.6: %Self.ref as %I.ref {
  511. // CHECK:STDOUT: %F.decl: %F.type.60d = fn_decl @F.4 [template = constants.%F.ae3] {
  512. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  513. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param0
  514. // CHECK:STDOUT: } {
  515. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  516. // CHECK:STDOUT: %.loc89_15.1: type = value_of_initializer %bool.make_type [template = bool]
  517. // CHECK:STDOUT: %.loc89_15.2: type = converted %bool.make_type, %.loc89_15.1 [template = bool]
  518. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param0
  519. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  520. // CHECK:STDOUT: }
  521. // CHECK:STDOUT:
  522. // CHECK:STDOUT: !members:
  523. // CHECK:STDOUT: .F = %F.decl
  524. // CHECK:STDOUT: witness = @FExtraReturnType.%impl_witness
  525. // CHECK:STDOUT: }
  526. // CHECK:STDOUT:
  527. // CHECK:STDOUT: impl @impl.7: %Self.ref as %J.ref {
  528. // CHECK:STDOUT: %F.decl: %F.type.254 = fn_decl @F.6 [template = constants.%F.3dd] {
  529. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  530. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  531. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  532. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param1
  533. // CHECK:STDOUT: } {
  534. // CHECK:STDOUT: %bool.make_type.loc104_27: init type = call constants.%Bool() [template = bool]
  535. // CHECK:STDOUT: %.loc104_27.1: type = value_of_initializer %bool.make_type.loc104_27 [template = bool]
  536. // CHECK:STDOUT: %.loc104_27.2: type = converted %bool.make_type.loc104_27, %.loc104_27.1 [template = bool]
  537. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  538. // CHECK:STDOUT: %.loc104_16.1: type = splice_block %.loc104_16.3 [template = bool] {
  539. // CHECK:STDOUT: %bool.make_type.loc104_16: init type = call constants.%Bool() [template = bool]
  540. // CHECK:STDOUT: %.loc104_16.2: type = value_of_initializer %bool.make_type.loc104_16 [template = bool]
  541. // CHECK:STDOUT: %.loc104_16.3: type = converted %bool.make_type.loc104_16, %.loc104_16.2 [template = bool]
  542. // CHECK:STDOUT: }
  543. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  544. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param1
  545. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  546. // CHECK:STDOUT: }
  547. // CHECK:STDOUT:
  548. // CHECK:STDOUT: !members:
  549. // CHECK:STDOUT: .F = %F.decl
  550. // CHECK:STDOUT: witness = @FMissingParam.%impl_witness
  551. // CHECK:STDOUT: }
  552. // CHECK:STDOUT:
  553. // CHECK:STDOUT: impl @impl.8: %Self.ref as %J.ref {
  554. // CHECK:STDOUT: %F.decl: %F.type.a49 = fn_decl @F.7 [template = constants.%F.95b] {
  555. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  556. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param0
  557. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  558. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param1
  559. // CHECK:STDOUT: } {
  560. // CHECK:STDOUT: %bool.make_type.loc117_22: init type = call constants.%Bool() [template = bool]
  561. // CHECK:STDOUT: %.loc117_22.1: type = value_of_initializer %bool.make_type.loc117_22 [template = bool]
  562. // CHECK:STDOUT: %.loc117_22.2: type = converted %bool.make_type.loc117_22, %.loc117_22.1 [template = bool]
  563. // CHECK:STDOUT: %b.param: bool = value_param runtime_param0
  564. // CHECK:STDOUT: %.loc117_13.1: type = splice_block %.loc117_13.3 [template = bool] {
  565. // CHECK:STDOUT: %bool.make_type.loc117_13: init type = call constants.%Bool() [template = bool]
  566. // CHECK:STDOUT: %.loc117_13.2: type = value_of_initializer %bool.make_type.loc117_13 [template = bool]
  567. // CHECK:STDOUT: %.loc117_13.3: type = converted %bool.make_type.loc117_13, %.loc117_13.2 [template = bool]
  568. // CHECK:STDOUT: }
  569. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  570. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param1
  571. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  572. // CHECK:STDOUT: }
  573. // CHECK:STDOUT:
  574. // CHECK:STDOUT: !members:
  575. // CHECK:STDOUT: .F = %F.decl
  576. // CHECK:STDOUT: witness = @FMissingImplicitParam.%impl_witness
  577. // CHECK:STDOUT: }
  578. // CHECK:STDOUT:
  579. // CHECK:STDOUT: impl @impl.9: %Self.ref as %J.ref {
  580. // CHECK:STDOUT: %F.decl: %F.type.bc5 = fn_decl @F.8 [template = constants.%F.d2b] {
  581. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  582. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  583. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  584. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  585. // CHECK:STDOUT: } {
  586. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  587. // CHECK:STDOUT: %.loc130_16.1: type = splice_block %.loc130_16.3 [template = bool] {
  588. // CHECK:STDOUT: %bool.make_type.loc130_16: init type = call constants.%Bool() [template = bool]
  589. // CHECK:STDOUT: %.loc130_16.2: type = value_of_initializer %bool.make_type.loc130_16 [template = bool]
  590. // CHECK:STDOUT: %.loc130_16.3: type = converted %bool.make_type.loc130_16, %.loc130_16.2 [template = bool]
  591. // CHECK:STDOUT: }
  592. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  593. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  594. // CHECK:STDOUT: %.loc130_25.1: type = splice_block %.loc130_25.3 [template = bool] {
  595. // CHECK:STDOUT: %bool.make_type.loc130_25: init type = call constants.%Bool() [template = bool]
  596. // CHECK:STDOUT: %.loc130_25.2: type = value_of_initializer %bool.make_type.loc130_25 [template = bool]
  597. // CHECK:STDOUT: %.loc130_25.3: type = converted %bool.make_type.loc130_25, %.loc130_25.2 [template = bool]
  598. // CHECK:STDOUT: }
  599. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  600. // CHECK:STDOUT: }
  601. // CHECK:STDOUT:
  602. // CHECK:STDOUT: !members:
  603. // CHECK:STDOUT: .F = %F.decl
  604. // CHECK:STDOUT: witness = @FMissingReturnType.%impl_witness
  605. // CHECK:STDOUT: }
  606. // CHECK:STDOUT:
  607. // CHECK:STDOUT: impl @impl.10: %Self.ref as %J.ref {
  608. // CHECK:STDOUT: %F.decl: %F.type.f00 = fn_decl @F.9 [template = constants.%F.a37] {
  609. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  610. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  611. // CHECK:STDOUT: %b.patt: %FDifferentParamType = binding_pattern b
  612. // CHECK:STDOUT: %b.param_patt: %FDifferentParamType = value_param_pattern %b.patt, runtime_param1
  613. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  614. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  615. // CHECK:STDOUT: } {
  616. // CHECK:STDOUT: %bool.make_type.loc143_34: init type = call constants.%Bool() [template = bool]
  617. // CHECK:STDOUT: %.loc143_34.1: type = value_of_initializer %bool.make_type.loc143_34 [template = bool]
  618. // CHECK:STDOUT: %.loc143_34.2: type = converted %bool.make_type.loc143_34, %.loc143_34.1 [template = bool]
  619. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  620. // CHECK:STDOUT: %.loc143_16.1: type = splice_block %.loc143_16.3 [template = bool] {
  621. // CHECK:STDOUT: %bool.make_type.loc143_16: init type = call constants.%Bool() [template = bool]
  622. // CHECK:STDOUT: %.loc143_16.2: type = value_of_initializer %bool.make_type.loc143_16 [template = bool]
  623. // CHECK:STDOUT: %.loc143_16.3: type = converted %bool.make_type.loc143_16, %.loc143_16.2 [template = bool]
  624. // CHECK:STDOUT: }
  625. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  626. // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param runtime_param1
  627. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [template = constants.%FDifferentParamType]
  628. // CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param
  629. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  630. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  631. // CHECK:STDOUT: }
  632. // CHECK:STDOUT:
  633. // CHECK:STDOUT: !members:
  634. // CHECK:STDOUT: .F = %F.decl
  635. // CHECK:STDOUT: witness = @FDifferentParamType.%impl_witness
  636. // CHECK:STDOUT: }
  637. // CHECK:STDOUT:
  638. // CHECK:STDOUT: impl @impl.11: %Self.ref as %J.ref {
  639. // CHECK:STDOUT: %F.decl: %F.type.c1a = fn_decl @F.10 [template = constants.%F.edd] {
  640. // CHECK:STDOUT: %self.patt: %FDifferentImplicitParamType = binding_pattern self
  641. // CHECK:STDOUT: %self.param_patt: %FDifferentImplicitParamType = value_param_pattern %self.patt, runtime_param0
  642. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  643. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  644. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  645. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  646. // CHECK:STDOUT: } {
  647. // CHECK:STDOUT: %bool.make_type.loc156_34: init type = call constants.%Bool() [template = bool]
  648. // CHECK:STDOUT: %.loc156_34.1: type = value_of_initializer %bool.make_type.loc156_34 [template = bool]
  649. // CHECK:STDOUT: %.loc156_34.2: type = converted %bool.make_type.loc156_34, %.loc156_34.1 [template = bool]
  650. // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param runtime_param0
  651. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType]
  652. // CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param
  653. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  654. // CHECK:STDOUT: %.loc156_25.1: type = splice_block %.loc156_25.3 [template = bool] {
  655. // CHECK:STDOUT: %bool.make_type.loc156_25: init type = call constants.%Bool() [template = bool]
  656. // CHECK:STDOUT: %.loc156_25.2: type = value_of_initializer %bool.make_type.loc156_25 [template = bool]
  657. // CHECK:STDOUT: %.loc156_25.3: type = converted %bool.make_type.loc156_25, %.loc156_25.2 [template = bool]
  658. // CHECK:STDOUT: }
  659. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  660. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  661. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  662. // CHECK:STDOUT: }
  663. // CHECK:STDOUT:
  664. // CHECK:STDOUT: !members:
  665. // CHECK:STDOUT: .F = %F.decl
  666. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%impl_witness
  667. // CHECK:STDOUT: }
  668. // CHECK:STDOUT:
  669. // CHECK:STDOUT: impl @impl.12: %Self.ref as %J.ref {
  670. // CHECK:STDOUT: %F.decl: %F.type.bad = fn_decl @F.11 [template = constants.%F.6df] {
  671. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  672. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  673. // CHECK:STDOUT: %b.patt: bool = binding_pattern b
  674. // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
  675. // CHECK:STDOUT: %return.patt: %FDifferentReturnType = return_slot_pattern
  676. // CHECK:STDOUT: %return.param_patt: %FDifferentReturnType = out_param_pattern %return.patt, runtime_param2
  677. // CHECK:STDOUT: } {
  678. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [template = constants.%FDifferentReturnType]
  679. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  680. // CHECK:STDOUT: %.loc169_16.1: type = splice_block %.loc169_16.3 [template = bool] {
  681. // CHECK:STDOUT: %bool.make_type.loc169_16: init type = call constants.%Bool() [template = bool]
  682. // CHECK:STDOUT: %.loc169_16.2: type = value_of_initializer %bool.make_type.loc169_16 [template = bool]
  683. // CHECK:STDOUT: %.loc169_16.3: type = converted %bool.make_type.loc169_16, %.loc169_16.2 [template = bool]
  684. // CHECK:STDOUT: }
  685. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  686. // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
  687. // CHECK:STDOUT: %.loc169_25.1: type = splice_block %.loc169_25.3 [template = bool] {
  688. // CHECK:STDOUT: %bool.make_type.loc169_25: init type = call constants.%Bool() [template = bool]
  689. // CHECK:STDOUT: %.loc169_25.2: type = value_of_initializer %bool.make_type.loc169_25 [template = bool]
  690. // CHECK:STDOUT: %.loc169_25.3: type = converted %bool.make_type.loc169_25, %.loc169_25.2 [template = bool]
  691. // CHECK:STDOUT: }
  692. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  693. // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param runtime_param2
  694. // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
  695. // CHECK:STDOUT: }
  696. // CHECK:STDOUT:
  697. // CHECK:STDOUT: !members:
  698. // CHECK:STDOUT: .F = %F.decl
  699. // CHECK:STDOUT: witness = @FDifferentReturnType.%impl_witness
  700. // CHECK:STDOUT: }
  701. // CHECK:STDOUT:
  702. // CHECK:STDOUT: impl @impl.13: %Self.ref as %J.ref {
  703. // CHECK:STDOUT: %F.decl: %F.type.b18 = fn_decl @F.12 [template = constants.%F.ada] {
  704. // CHECK:STDOUT: %self.patt: bool = binding_pattern self
  705. // CHECK:STDOUT: %self.param_patt: bool = value_param_pattern %self.patt, runtime_param0
  706. // CHECK:STDOUT: %not_b.patt: bool = binding_pattern not_b
  707. // CHECK:STDOUT: %not_b.param_patt: bool = value_param_pattern %not_b.patt, runtime_param1
  708. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  709. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
  710. // CHECK:STDOUT: } {
  711. // CHECK:STDOUT: %bool.make_type.loc183_38: init type = call constants.%Bool() [template = bool]
  712. // CHECK:STDOUT: %.loc183_38.1: type = value_of_initializer %bool.make_type.loc183_38 [template = bool]
  713. // CHECK:STDOUT: %.loc183_38.2: type = converted %bool.make_type.loc183_38, %.loc183_38.1 [template = bool]
  714. // CHECK:STDOUT: %self.param: bool = value_param runtime_param0
  715. // CHECK:STDOUT: %.loc183_16.1: type = splice_block %.loc183_16.3 [template = bool] {
  716. // CHECK:STDOUT: %bool.make_type.loc183_16: init type = call constants.%Bool() [template = bool]
  717. // CHECK:STDOUT: %.loc183_16.2: type = value_of_initializer %bool.make_type.loc183_16 [template = bool]
  718. // CHECK:STDOUT: %.loc183_16.3: type = converted %bool.make_type.loc183_16, %.loc183_16.2 [template = bool]
  719. // CHECK:STDOUT: }
  720. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  721. // CHECK:STDOUT: %not_b.param: bool = value_param runtime_param1
  722. // CHECK:STDOUT: %.loc183_29.1: type = splice_block %.loc183_29.3 [template = bool] {
  723. // CHECK:STDOUT: %bool.make_type.loc183_29: init type = call constants.%Bool() [template = bool]
  724. // CHECK:STDOUT: %.loc183_29.2: type = value_of_initializer %bool.make_type.loc183_29 [template = bool]
  725. // CHECK:STDOUT: %.loc183_29.3: type = converted %bool.make_type.loc183_29, %.loc183_29.2 [template = bool]
  726. // CHECK:STDOUT: }
  727. // CHECK:STDOUT: %not_b: bool = bind_name not_b, %not_b.param
  728. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
  729. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  730. // CHECK:STDOUT: }
  731. // CHECK:STDOUT:
  732. // CHECK:STDOUT: !members:
  733. // CHECK:STDOUT: .F = %F.decl
  734. // CHECK:STDOUT: witness = @FDifferentParamName.%impl_witness
  735. // CHECK:STDOUT: }
  736. // CHECK:STDOUT:
  737. // CHECK:STDOUT: impl @impl.14: %Self.ref as %SelfNested.ref {
  738. // CHECK:STDOUT: %F.decl: %F.type.965 = fn_decl @F.14 [template = constants.%F.f18] {
  739. // CHECK:STDOUT: %x.patt: %tuple.type.0cf = binding_pattern x
  740. // CHECK:STDOUT: %x.param_patt: %tuple.type.0cf = value_param_pattern %x.patt, runtime_param0
  741. // CHECK:STDOUT: %return.patt: %array_type.a41 = return_slot_pattern
  742. // CHECK:STDOUT: %return.param_patt: %array_type.a41 = out_param_pattern %return.patt, runtime_param1
  743. // CHECK:STDOUT: } {
  744. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_60: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  745. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  746. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam [template = constants.%array_type.a41]
  747. // CHECK:STDOUT: %x.param: %tuple.type.0cf = value_param runtime_param0
  748. // CHECK:STDOUT: %.loc200_53.1: type = splice_block %.loc200_53.3 [template = constants.%tuple.type.0cf] {
  749. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  750. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam [template = constants.%ptr.4cd]
  751. // CHECK:STDOUT: %int_32.loc200_40: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  752. // CHECK:STDOUT: %i32.loc200_40: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  753. // CHECK:STDOUT: %int_32.loc200_49: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  754. // CHECK:STDOUT: %i32.loc200_49: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  755. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [template = constants.%struct_type.x.y.f68]
  756. // CHECK:STDOUT: %.loc200_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  757. // CHECK:STDOUT: %.loc200_53.3: type = converted %.loc200_53.2, constants.%tuple.type.0cf [template = constants.%tuple.type.0cf]
  758. // CHECK:STDOUT: }
  759. // CHECK:STDOUT: %x: %tuple.type.0cf = bind_name x, %x.param
  760. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param runtime_param1
  761. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  762. // CHECK:STDOUT: }
  763. // CHECK:STDOUT:
  764. // CHECK:STDOUT: !members:
  765. // CHECK:STDOUT: .F = %F.decl
  766. // CHECK:STDOUT: witness = @SelfNestedBadParam.%impl_witness
  767. // CHECK:STDOUT: }
  768. // CHECK:STDOUT:
  769. // CHECK:STDOUT: impl @impl.15: %Self.ref as %SelfNested.ref {
  770. // CHECK:STDOUT: %F.decl: %F.type.3e7 = fn_decl @F.15 [template = constants.%F.be8] {
  771. // CHECK:STDOUT: %x.patt: %tuple.type.ff1 = binding_pattern x
  772. // CHECK:STDOUT: %x.param_patt: %tuple.type.ff1 = value_param_pattern %x.patt, runtime_param0
  773. // CHECK:STDOUT: %return.patt: %array_type.a41 = return_slot_pattern
  774. // CHECK:STDOUT: %return.param_patt: %array_type.a41 = out_param_pattern %return.patt, runtime_param1
  775. // CHECK:STDOUT: } {
  776. // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam]
  777. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [template = constants.%int_4]
  778. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam [template = constants.%array_type.a41]
  779. // CHECK:STDOUT: %x.param: %tuple.type.ff1 = value_param runtime_param0
  780. // CHECK:STDOUT: %.loc212_78.1: type = splice_block %.loc212_78.3 [template = constants.%tuple.type.ff1] {
  781. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc212_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [template = constants.%SelfNestedBadReturnType]
  782. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType [template = constants.%ptr.612]
  783. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc212_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [template = constants.%SelfNestedBadReturnType]
  784. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  785. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  786. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [template = constants.%struct_type.x.y.d53]
  787. // CHECK:STDOUT: %.loc212_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  788. // CHECK:STDOUT: %.loc212_78.3: type = converted %.loc212_78.2, constants.%tuple.type.ff1 [template = constants.%tuple.type.ff1]
  789. // CHECK:STDOUT: }
  790. // CHECK:STDOUT: %x: %tuple.type.ff1 = bind_name x, %x.param
  791. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param runtime_param1
  792. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  793. // CHECK:STDOUT: }
  794. // CHECK:STDOUT:
  795. // CHECK:STDOUT: !members:
  796. // CHECK:STDOUT: .F = %F.decl
  797. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%impl_witness
  798. // CHECK:STDOUT: }
  799. // CHECK:STDOUT:
  800. // CHECK:STDOUT: class @NoF {
  801. // CHECK:STDOUT: impl_decl @impl.1 [template] {} {
  802. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [template = constants.%NoF]
  803. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  804. // CHECK:STDOUT: }
  805. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.1]
  806. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  807. // CHECK:STDOUT:
  808. // CHECK:STDOUT: !members:
  809. // CHECK:STDOUT: .Self = constants.%NoF
  810. // CHECK:STDOUT: complete_type_witness = %complete_type
  811. // CHECK:STDOUT: }
  812. // CHECK:STDOUT:
  813. // CHECK:STDOUT: class @FNotFunction {
  814. // CHECK:STDOUT: impl_decl @impl.2 [template] {} {
  815. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [template = constants.%FNotFunction]
  816. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  817. // CHECK:STDOUT: }
  818. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.2]
  819. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  820. // CHECK:STDOUT:
  821. // CHECK:STDOUT: !members:
  822. // CHECK:STDOUT: .Self = constants.%FNotFunction
  823. // CHECK:STDOUT: complete_type_witness = %complete_type
  824. // CHECK:STDOUT: }
  825. // CHECK:STDOUT:
  826. // CHECK:STDOUT: class @F.16;
  827. // CHECK:STDOUT:
  828. // CHECK:STDOUT: class @FAlias {
  829. // CHECK:STDOUT: impl_decl @impl.3 [template] {} {
  830. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [template = constants.%FAlias]
  831. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  832. // CHECK:STDOUT: }
  833. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.3]
  834. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  835. // CHECK:STDOUT:
  836. // CHECK:STDOUT: !members:
  837. // CHECK:STDOUT: .Self = constants.%FAlias
  838. // CHECK:STDOUT: complete_type_witness = %complete_type
  839. // CHECK:STDOUT: }
  840. // CHECK:STDOUT:
  841. // CHECK:STDOUT: class @FExtraParam {
  842. // CHECK:STDOUT: impl_decl @impl.4 [template] {} {
  843. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [template = constants.%FExtraParam]
  844. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  845. // CHECK:STDOUT: }
  846. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.4]
  847. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  848. // CHECK:STDOUT:
  849. // CHECK:STDOUT: !members:
  850. // CHECK:STDOUT: .Self = constants.%FExtraParam
  851. // CHECK:STDOUT: complete_type_witness = %complete_type
  852. // CHECK:STDOUT: }
  853. // CHECK:STDOUT:
  854. // CHECK:STDOUT: class @FExtraImplicitParam {
  855. // CHECK:STDOUT: impl_decl @impl.5 [template] {} {
  856. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [template = constants.%FExtraImplicitParam]
  857. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  858. // CHECK:STDOUT: }
  859. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.5]
  860. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  861. // CHECK:STDOUT:
  862. // CHECK:STDOUT: !members:
  863. // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
  864. // CHECK:STDOUT: complete_type_witness = %complete_type
  865. // CHECK:STDOUT: }
  866. // CHECK:STDOUT:
  867. // CHECK:STDOUT: class @FExtraReturnType {
  868. // CHECK:STDOUT: impl_decl @impl.6 [template] {} {
  869. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [template = constants.%FExtraReturnType]
  870. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
  871. // CHECK:STDOUT: }
  872. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.6]
  873. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  874. // CHECK:STDOUT:
  875. // CHECK:STDOUT: !members:
  876. // CHECK:STDOUT: .Self = constants.%FExtraReturnType
  877. // CHECK:STDOUT: complete_type_witness = %complete_type
  878. // CHECK:STDOUT: }
  879. // CHECK:STDOUT:
  880. // CHECK:STDOUT: class @FMissingParam {
  881. // CHECK:STDOUT: impl_decl @impl.7 [template] {} {
  882. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [template = constants.%FMissingParam]
  883. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  884. // CHECK:STDOUT: }
  885. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.7]
  886. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  887. // CHECK:STDOUT:
  888. // CHECK:STDOUT: !members:
  889. // CHECK:STDOUT: .Self = constants.%FMissingParam
  890. // CHECK:STDOUT: complete_type_witness = %complete_type
  891. // CHECK:STDOUT: }
  892. // CHECK:STDOUT:
  893. // CHECK:STDOUT: class @FMissingImplicitParam {
  894. // CHECK:STDOUT: impl_decl @impl.8 [template] {} {
  895. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [template = constants.%FMissingImplicitParam]
  896. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  897. // CHECK:STDOUT: }
  898. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.8]
  899. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  900. // CHECK:STDOUT:
  901. // CHECK:STDOUT: !members:
  902. // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
  903. // CHECK:STDOUT: complete_type_witness = %complete_type
  904. // CHECK:STDOUT: }
  905. // CHECK:STDOUT:
  906. // CHECK:STDOUT: class @FMissingReturnType {
  907. // CHECK:STDOUT: impl_decl @impl.9 [template] {} {
  908. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [template = constants.%FMissingReturnType]
  909. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  910. // CHECK:STDOUT: }
  911. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.9]
  912. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  913. // CHECK:STDOUT:
  914. // CHECK:STDOUT: !members:
  915. // CHECK:STDOUT: .Self = constants.%FMissingReturnType
  916. // CHECK:STDOUT: complete_type_witness = %complete_type
  917. // CHECK:STDOUT: }
  918. // CHECK:STDOUT:
  919. // CHECK:STDOUT: class @FDifferentParamType {
  920. // CHECK:STDOUT: impl_decl @impl.10 [template] {} {
  921. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [template = constants.%FDifferentParamType]
  922. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  923. // CHECK:STDOUT: }
  924. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.10]
  925. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  926. // CHECK:STDOUT:
  927. // CHECK:STDOUT: !members:
  928. // CHECK:STDOUT: .Self = constants.%FDifferentParamType
  929. // CHECK:STDOUT: complete_type_witness = %complete_type
  930. // CHECK:STDOUT: }
  931. // CHECK:STDOUT:
  932. // CHECK:STDOUT: class @FDifferentImplicitParamType {
  933. // CHECK:STDOUT: impl_decl @impl.11 [template] {} {
  934. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [template = constants.%FDifferentImplicitParamType]
  935. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  936. // CHECK:STDOUT: }
  937. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.11]
  938. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  939. // CHECK:STDOUT:
  940. // CHECK:STDOUT: !members:
  941. // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
  942. // CHECK:STDOUT: complete_type_witness = %complete_type
  943. // CHECK:STDOUT: }
  944. // CHECK:STDOUT:
  945. // CHECK:STDOUT: class @FDifferentReturnType {
  946. // CHECK:STDOUT: impl_decl @impl.12 [template] {} {
  947. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [template = constants.%FDifferentReturnType]
  948. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  949. // CHECK:STDOUT: }
  950. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.12]
  951. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  952. // CHECK:STDOUT:
  953. // CHECK:STDOUT: !members:
  954. // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
  955. // CHECK:STDOUT: complete_type_witness = %complete_type
  956. // CHECK:STDOUT: }
  957. // CHECK:STDOUT:
  958. // CHECK:STDOUT: class @FDifferentParamName {
  959. // CHECK:STDOUT: impl_decl @impl.13 [template] {} {
  960. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamName [template = constants.%FDifferentParamName]
  961. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [template = constants.%J.type]
  962. // CHECK:STDOUT: }
  963. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.13]
  964. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  965. // CHECK:STDOUT:
  966. // CHECK:STDOUT: !members:
  967. // CHECK:STDOUT: .Self = constants.%FDifferentParamName
  968. // CHECK:STDOUT: complete_type_witness = %complete_type
  969. // CHECK:STDOUT: }
  970. // CHECK:STDOUT:
  971. // CHECK:STDOUT: class @SelfNestedBadParam {
  972. // CHECK:STDOUT: impl_decl @impl.14 [template] {} {
  973. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [template = constants.%SelfNestedBadParam]
  974. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [template = constants.%SelfNested.type]
  975. // CHECK:STDOUT: }
  976. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.14]
  977. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  978. // CHECK:STDOUT:
  979. // CHECK:STDOUT: !members:
  980. // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
  981. // CHECK:STDOUT: complete_type_witness = %complete_type
  982. // CHECK:STDOUT: }
  983. // CHECK:STDOUT:
  984. // CHECK:STDOUT: class @SelfNestedBadReturnType {
  985. // CHECK:STDOUT: impl_decl @impl.15 [template] {} {
  986. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [template = constants.%SelfNestedBadReturnType]
  987. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [template = constants.%SelfNested.type]
  988. // CHECK:STDOUT: }
  989. // CHECK:STDOUT: %impl_witness: <witness> = impl_witness (<error>) [template = constants.%impl_witness.85bcb7.15]
  990. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type.357]
  991. // CHECK:STDOUT:
  992. // CHECK:STDOUT: !members:
  993. // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
  994. // CHECK:STDOUT: complete_type_witness = %complete_type
  995. // CHECK:STDOUT: }
  996. // CHECK:STDOUT:
  997. // CHECK:STDOUT: generic fn @F.1(@I.%Self: %I.type) {
  998. // CHECK:STDOUT:
  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:
  1012. // CHECK:STDOUT: fn[%self.param_patt: bool](%b.param_patt: bool) -> bool;
  1013. // CHECK:STDOUT: }
  1014. // CHECK:STDOUT:
  1015. // CHECK:STDOUT: fn @F.6[%self.param_patt: bool]() -> bool;
  1016. // CHECK:STDOUT:
  1017. // CHECK:STDOUT: fn @F.7(%b.param_patt: bool) -> bool;
  1018. // CHECK:STDOUT:
  1019. // CHECK:STDOUT: fn @F.8[%self.param_patt: bool](%b.param_patt: bool);
  1020. // CHECK:STDOUT:
  1021. // CHECK:STDOUT: fn @F.9[%self.param_patt: bool](%b.param_patt: %FDifferentParamType) -> bool;
  1022. // CHECK:STDOUT:
  1023. // CHECK:STDOUT: fn @F.10[%self.param_patt: %FDifferentImplicitParamType](%b.param_patt: bool) -> bool;
  1024. // CHECK:STDOUT:
  1025. // CHECK:STDOUT: fn @F.11[%self.param_patt: bool](%b.param_patt: bool) -> %FDifferentReturnType;
  1026. // CHECK:STDOUT:
  1027. // CHECK:STDOUT: fn @F.12[%self.param_patt: bool](%not_b.param_patt: bool) -> bool;
  1028. // CHECK:STDOUT:
  1029. // CHECK:STDOUT: generic fn @F.13(@SelfNested.%Self: %SelfNested.type) {
  1030. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.36c)]
  1031. // CHECK:STDOUT: %Self.as_type.loc188_16.1: type = facet_access_type %Self [symbolic = %Self.as_type.loc188_16.1 (constants.%Self.as_type)]
  1032. // 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.af7)]
  1033. // 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.a57)]
  1034. // CHECK:STDOUT: %tuple.type: type = tuple_type (@F.13.%ptr.loc188_16.1 (%ptr.af7), @F.13.%struct_type.x.y.loc188_37.1 (%struct_type.x.y.a57)) [symbolic = %tuple.type (constants.%tuple.type.5f6)]
  1035. // 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.126f)]
  1036. // CHECK:STDOUT:
  1037. // CHECK:STDOUT: fn(%x.param_patt: @F.13.%tuple.type (%tuple.type.5f6)) -> @F.13.%array_type.loc188_52.1 (%array_type.126f);
  1038. // CHECK:STDOUT: }
  1039. // CHECK:STDOUT:
  1040. // CHECK:STDOUT: fn @F.14(%x.param_patt: %tuple.type.0cf) -> %array_type.a41;
  1041. // CHECK:STDOUT:
  1042. // CHECK:STDOUT: fn @F.15(%x.param_patt: %tuple.type.ff1) -> %array_type.a41;
  1043. // CHECK:STDOUT:
  1044. // CHECK:STDOUT: specific @F.1(constants.%Self.fb7) {}
  1045. // CHECK:STDOUT:
  1046. // CHECK:STDOUT: specific @F.1(constants.%I.facet.3bf) {}
  1047. // CHECK:STDOUT:
  1048. // CHECK:STDOUT: specific @F.1(constants.%I.facet.33b) {}
  1049. // CHECK:STDOUT:
  1050. // CHECK:STDOUT: specific @F.1(constants.%I.facet.fad) {}
  1051. // CHECK:STDOUT:
  1052. // CHECK:STDOUT: specific @F.5(constants.%Self.f9f) {}
  1053. // CHECK:STDOUT:
  1054. // CHECK:STDOUT: specific @F.5(constants.%J.facet.515) {}
  1055. // CHECK:STDOUT:
  1056. // CHECK:STDOUT: specific @F.5(constants.%J.facet.f88) {}
  1057. // CHECK:STDOUT:
  1058. // CHECK:STDOUT: specific @F.5(constants.%J.facet.43b) {}
  1059. // CHECK:STDOUT:
  1060. // CHECK:STDOUT: specific @F.5(constants.%J.facet.9b0) {}
  1061. // CHECK:STDOUT:
  1062. // CHECK:STDOUT: specific @F.5(constants.%J.facet.4bb) {}
  1063. // CHECK:STDOUT:
  1064. // CHECK:STDOUT: specific @F.5(constants.%J.facet.5c7) {}
  1065. // CHECK:STDOUT:
  1066. // CHECK:STDOUT: specific @F.5(constants.%J.facet.daf) {}
  1067. // CHECK:STDOUT:
  1068. // CHECK:STDOUT: specific @F.13(constants.%Self.36c) {
  1069. // CHECK:STDOUT: %Self => constants.%Self.36c
  1070. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%Self.as_type
  1071. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.af7
  1072. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.a57
  1073. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.5f6
  1074. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.126f
  1075. // CHECK:STDOUT: }
  1076. // CHECK:STDOUT:
  1077. // CHECK:STDOUT: specific @F.13(constants.%SelfNested.facet.61c) {
  1078. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.61c
  1079. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%SelfNestedBadParam
  1080. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.4cd
  1081. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.110
  1082. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.aa1
  1083. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.a41
  1084. // CHECK:STDOUT: }
  1085. // CHECK:STDOUT:
  1086. // CHECK:STDOUT: specific @F.13(constants.%SelfNested.facet.01f) {
  1087. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.01f
  1088. // CHECK:STDOUT: %Self.as_type.loc188_16.1 => constants.%SelfNestedBadReturnType
  1089. // CHECK:STDOUT: %ptr.loc188_16.1 => constants.%ptr.612
  1090. // CHECK:STDOUT: %struct_type.x.y.loc188_37.1 => constants.%struct_type.x.y.d53
  1091. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.ff1
  1092. // CHECK:STDOUT: %array_type.loc188_52.1 => constants.%array_type.126b
  1093. // CHECK:STDOUT: }
  1094. // CHECK:STDOUT: