fail_impl_bad_assoc_fn.carbon 137 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/primitives.carbon
  6. // TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
  7. // EXTRA-ARGS: --dump-sem-ir-ranges=if-present
  8. //
  9. // AUTOUPDATE
  10. // TIP: To test this file alone, run:
  11. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon
  14. interface I { fn F(); }
  15. class NoF {
  16. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:3: error: missing implementation of F in impl of interface I [ImplMissingFunction]
  17. // CHECK:STDERR: impl as I {}
  18. // CHECK:STDERR: ^~~~~~~~~~~
  19. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-6]]:15: note: associated function F declared here [AssociatedFunctionHere]
  20. // CHECK:STDERR: interface I { fn F(); }
  21. // CHECK:STDERR: ^~~~~~~
  22. // CHECK:STDERR:
  23. impl as I {}
  24. }
  25. class FNotFunction {
  26. impl as I {
  27. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  28. // CHECK:STDERR: class F;
  29. // CHECK:STDERR: ^~~~~~~~
  30. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-18]]:15: note: associated function F declared here [AssociatedFunctionHere]
  31. // CHECK:STDERR: interface I { fn F(); }
  32. // CHECK:STDERR: ^~~~~~~
  33. // CHECK:STDERR:
  34. class F;
  35. }
  36. }
  37. fn PossiblyF();
  38. // TODO: Should this be permitted?
  39. class FAlias {
  40. impl as I {
  41. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:11: error: associated function F implemented by non-function [ImplFunctionWithNonFunction]
  42. // CHECK:STDERR: alias F = PossiblyF;
  43. // CHECK:STDERR: ^
  44. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-34]]:15: note: associated function F declared here [AssociatedFunctionHere]
  45. // CHECK:STDERR: interface I { fn F(); }
  46. // CHECK:STDERR: ^~~~~~~
  47. // CHECK:STDERR:
  48. alias F = PossiblyF;
  49. }
  50. }
  51. class FExtraParam {
  52. impl as I {
  53. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 0 arguments passed to function expecting 1 argument [CallArgCountMismatch]
  54. // CHECK:STDERR: fn F(b: bool);
  55. // CHECK:STDERR: ^~~~~~~~~~~~~~
  56. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
  57. // CHECK:STDERR: fn F(b: bool);
  58. // CHECK:STDERR: ^~~~~~~~~~~~~~
  59. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-50]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  60. // CHECK:STDERR: interface I { fn F(); }
  61. // CHECK:STDERR: ^~~~~~~
  62. // CHECK:STDERR:
  63. fn F(b: bool);
  64. }
  65. }
  66. class FExtraImplicitParam {
  67. impl as I {
  68. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: missing object argument in method call [MissingObjectInMethodCall]
  69. // CHECK:STDERR: fn F[self: Self]();
  70. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
  71. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToFunction]
  72. // CHECK:STDERR: fn F[self: Self]();
  73. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~
  74. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-66]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  75. // CHECK:STDERR: interface I { fn F(); }
  76. // CHECK:STDERR: ^~~~~~~
  77. // CHECK:STDERR:
  78. fn F[self: Self]();
  79. }
  80. }
  81. // TODO: Should this be permitted?
  82. class FExtraReturnType {
  83. impl as I {
  84. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: function redeclaration differs because return type is `bool` [FunctionRedeclReturnTypeDiffers]
  85. // CHECK:STDERR: fn F() -> bool;
  86. // CHECK:STDERR: ^~~~~~~~~~~~~~~
  87. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-80]]:15: note: previously declared with no return type [FunctionRedeclReturnTypePreviousNoReturn]
  88. // CHECK:STDERR: interface I { fn F(); }
  89. // CHECK:STDERR: ^~~~~~~
  90. // CHECK:STDERR:
  91. fn F() -> bool;
  92. }
  93. }
  94. interface J { fn F[self: bool](b: bool) -> bool; }
  95. class FMissingParam {
  96. impl as J {
  97. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: 1 argument passed to function expecting 0 arguments [CallArgCountMismatch]
  98. // CHECK:STDERR: fn F[self: bool]() -> bool;
  99. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: calling function declared here [InCallToEntity]
  101. // CHECK:STDERR: fn F[self: bool]() -> bool;
  102. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  103. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-10]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  104. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  105. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  106. // CHECK:STDERR:
  107. fn F[self: bool]() -> bool;
  108. }
  109. }
  110. class FMissingImplicitParam {
  111. impl as J {
  112. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: error: member name of type `<type of F>` in compound member access is not an instance member or an interface member [CompoundMemberAccessDoesNotUseBase]
  113. // CHECK:STDERR: fn F(b: bool) -> bool;
  114. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
  115. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-23]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  116. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  117. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. // CHECK:STDERR:
  119. fn F(b: bool) -> bool;
  120. }
  121. }
  122. class FMissingReturnType {
  123. impl as J {
  124. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+16]]:5: error: cannot implicitly convert expression of type `()` to `bool` [ConversionFailure]
  125. // CHECK:STDERR: fn F[self: bool](b: bool);
  126. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
  127. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:5: note: type `()` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
  128. // CHECK:STDERR: fn F[self: bool](b: bool);
  129. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~
  130. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-39]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  131. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  132. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. // CHECK:STDERR:
  134. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-43]]:32: error: cannot implicitly convert expression of type `bool` to `FDifferentParamType` [ConversionFailure]
  135. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  136. // CHECK:STDERR: ^~~~~~~
  137. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-46]]:32: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentParamType)` [MissingImplInMemberAccessNote]
  138. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  139. // CHECK:STDERR: ^~~~~~~
  140. fn F[self: bool](b: bool);
  141. }
  142. }
  143. class FDifferentParamType {
  144. impl as J {
  145. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+13]]:22: note: initializing function parameter [InCallToFunctionParam]
  146. // CHECK:STDERR: fn F[self: bool](b: Self) -> bool;
  147. // CHECK:STDERR: ^~~~~~~
  148. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-58]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  149. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  150. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  151. // CHECK:STDERR:
  152. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-62]]:20: error: cannot implicitly convert expression of type `bool` to `FDifferentImplicitParamType` [ConversionFailure]
  153. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  154. // CHECK:STDERR: ^~~~~~~~~~
  155. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-65]]:20: note: type `bool` does not implement interface `Core.ImplicitAs(FDifferentImplicitParamType)` [MissingImplInMemberAccessNote]
  156. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  157. // CHECK:STDERR: ^~~~~~~~~~
  158. fn F[self: bool](b: Self) -> bool;
  159. }
  160. }
  161. class FDifferentImplicitParamType {
  162. impl as J {
  163. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
  164. // CHECK:STDERR: fn F[self: Self](b: bool) -> bool;
  165. // CHECK:STDERR: ^~~~~~~~~~
  166. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-77]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  167. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  168. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169. // CHECK:STDERR:
  170. fn F[self: Self](b: bool) -> bool;
  171. }
  172. }
  173. class FDifferentReturnType {
  174. impl as J {
  175. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: cannot implicitly convert expression of type `FDifferentReturnType` to `bool` [ConversionFailure]
  176. // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
  177. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: type `FDifferentReturnType` does not implement interface `Core.ImplicitAs(bool)` [MissingImplInMemberAccessNote]
  179. // CHECK:STDERR: fn F[self: bool](b: bool) -> Self;
  180. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  181. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-93]]:15: note: while building thunk to match the signature of this function [ThunkSignature]
  182. // CHECK:STDERR: interface J { fn F[self: bool](b: bool) -> bool; }
  183. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184. // CHECK:STDERR:
  185. fn F[self: bool](b: bool) -> Self;
  186. }
  187. }
  188. interface SelfNested {
  189. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+6]]:8: error: cannot implicitly convert expression of type `SelfNestedBadParam` to `i32` [ConversionFailure]
  190. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  191. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  192. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+3]]:8: note: type `SelfNestedBadParam` does not implement interface `Core.ImplicitAs(i32)` [MissingImplInMemberAccessNote]
  193. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  194. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  195. fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  196. }
  197. class SelfNestedBadParam {
  198. impl as SelfNested {
  199. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:10: note: initializing function parameter [InCallToFunctionParam]
  200. // CHECK:STDERR: fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
  201. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  202. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-8]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
  203. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  204. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  205. // CHECK:STDERR:
  206. fn F(x: (SelfNestedBadParam*, {.x: i32, .y: i32})) -> array(SelfNestedBadParam, 4);
  207. }
  208. }
  209. class SelfNestedBadReturnType {
  210. impl as SelfNested {
  211. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+10]]:5: error: cannot implicitly convert expression of type `array(SelfNestedBadParam, 4)` to `array(SelfNestedBadReturnType, 4)` [ConversionFailure]
  212. // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  213. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  214. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE+7]]:5: note: type `array(SelfNestedBadParam, 4)` does not implement interface `Core.ImplicitAs(array(SelfNestedBadReturnType, 4))` [MissingImplInMemberAccessNote]
  215. // CHECK:STDERR: fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  216. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  217. // CHECK:STDERR: fail_impl_bad_assoc_fn.carbon:[[@LINE-24]]:3: note: while building thunk to match the signature of this function [ThunkSignature]
  218. // CHECK:STDERR: fn F(x: (Self*, {.x: Self, .y: i32})) -> array(Self, 4);
  219. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  220. // CHECK:STDERR:
  221. fn F(x: (SelfNestedBadReturnType*, {.x: SelfNestedBadReturnType, .y: i32})) -> array(SelfNestedBadParam, 4);
  222. }
  223. }
  224. // CHECK:STDOUT: --- fail_impl_bad_assoc_fn.carbon
  225. // CHECK:STDOUT:
  226. // CHECK:STDOUT: constants {
  227. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  228. // CHECK:STDOUT: %Self.826: %I.type = bind_symbolic_name Self, 0 [symbolic]
  229. // CHECK:STDOUT: %I.F.type: type = fn_type @I.F [concrete]
  230. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  231. // CHECK:STDOUT: %I.F: %I.F.type = struct_value () [concrete]
  232. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
  233. // CHECK:STDOUT: %assoc0.82e: %I.assoc_type = assoc_entity element0, @I.%I.F.decl [concrete]
  234. // CHECK:STDOUT: %NoF: type = class_type @NoF [concrete]
  235. // CHECK:STDOUT: %I.impl_witness.901: <witness> = impl_witness @NoF.%I.impl_witness_table [concrete]
  236. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  237. // CHECK:STDOUT: %pattern_type.f6d: type = pattern_type auto [concrete]
  238. // CHECK:STDOUT: %Destroy.impl_witness.9b3: <witness> = impl_witness @NoF.%Destroy.impl_witness_table [concrete]
  239. // CHECK:STDOUT: %ptr.0f9: type = ptr_type %NoF [concrete]
  240. // CHECK:STDOUT: %pattern_type.7b5: type = pattern_type %ptr.0f9 [concrete]
  241. // CHECK:STDOUT: %NoF.as.Destroy.impl.Op.type: type = fn_type @NoF.as.Destroy.impl.Op [concrete]
  242. // CHECK:STDOUT: %NoF.as.Destroy.impl.Op: %NoF.as.Destroy.impl.Op.type = struct_value () [concrete]
  243. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  244. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
  245. // CHECK:STDOUT: %FNotFunction: type = class_type @FNotFunction [concrete]
  246. // CHECK:STDOUT: %I.impl_witness.44e: <witness> = impl_witness @FNotFunction.%I.impl_witness_table [concrete]
  247. // CHECK:STDOUT: %F: type = class_type @F [concrete]
  248. // CHECK:STDOUT: %Destroy.impl_witness.f9b: <witness> = impl_witness @FNotFunction.%Destroy.impl_witness_table [concrete]
  249. // CHECK:STDOUT: %ptr.2b2: type = ptr_type %FNotFunction [concrete]
  250. // CHECK:STDOUT: %pattern_type.27c: type = pattern_type %ptr.2b2 [concrete]
  251. // CHECK:STDOUT: %FNotFunction.as.Destroy.impl.Op.type: type = fn_type @FNotFunction.as.Destroy.impl.Op [concrete]
  252. // CHECK:STDOUT: %FNotFunction.as.Destroy.impl.Op: %FNotFunction.as.Destroy.impl.Op.type = struct_value () [concrete]
  253. // CHECK:STDOUT: %PossiblyF.type: type = fn_type @PossiblyF [concrete]
  254. // CHECK:STDOUT: %PossiblyF: %PossiblyF.type = struct_value () [concrete]
  255. // CHECK:STDOUT: %FAlias: type = class_type @FAlias [concrete]
  256. // CHECK:STDOUT: %I.impl_witness.c80: <witness> = impl_witness @FAlias.%I.impl_witness_table [concrete]
  257. // CHECK:STDOUT: %Destroy.impl_witness.740: <witness> = impl_witness @FAlias.%Destroy.impl_witness_table [concrete]
  258. // CHECK:STDOUT: %ptr.4bf: type = ptr_type %FAlias [concrete]
  259. // CHECK:STDOUT: %pattern_type.310: type = pattern_type %ptr.4bf [concrete]
  260. // CHECK:STDOUT: %FAlias.as.Destroy.impl.Op.type: type = fn_type @FAlias.as.Destroy.impl.Op [concrete]
  261. // CHECK:STDOUT: %FAlias.as.Destroy.impl.Op: %FAlias.as.Destroy.impl.Op.type = struct_value () [concrete]
  262. // CHECK:STDOUT: %FExtraParam: type = class_type @FExtraParam [concrete]
  263. // CHECK:STDOUT: %I.impl_witness.1f3: <witness> = impl_witness @FExtraParam.%I.impl_witness_table [concrete]
  264. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
  265. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
  266. // CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
  267. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.44ef8c.1: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.1 [concrete]
  268. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.424e9e.1: %FExtraParam.as.I.impl.F.type.44ef8c.1 = struct_value () [concrete]
  269. // CHECK:STDOUT: %I.facet.fa4: %I.type = facet_value %FExtraParam, (%I.impl_witness.1f3) [concrete]
  270. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.type.44ef8c.2: type = fn_type @FExtraParam.as.I.impl.F.loc69_18.2 [concrete]
  271. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.424e9e.2: %FExtraParam.as.I.impl.F.type.44ef8c.2 = struct_value () [concrete]
  272. // CHECK:STDOUT: %Destroy.impl_witness.44a: <witness> = impl_witness @FExtraParam.%Destroy.impl_witness_table [concrete]
  273. // CHECK:STDOUT: %ptr.0f2: type = ptr_type %FExtraParam [concrete]
  274. // CHECK:STDOUT: %pattern_type.8d3: type = pattern_type %ptr.0f2 [concrete]
  275. // CHECK:STDOUT: %FExtraParam.as.Destroy.impl.Op.type: type = fn_type @FExtraParam.as.Destroy.impl.Op [concrete]
  276. // CHECK:STDOUT: %FExtraParam.as.Destroy.impl.Op: %FExtraParam.as.Destroy.impl.Op.type = struct_value () [concrete]
  277. // CHECK:STDOUT: %FExtraImplicitParam: type = class_type @FExtraImplicitParam [concrete]
  278. // CHECK:STDOUT: %I.impl_witness.a7b: <witness> = impl_witness @FExtraImplicitParam.%I.impl_witness_table [concrete]
  279. // CHECK:STDOUT: %pattern_type.8ae: type = pattern_type %FExtraImplicitParam [concrete]
  280. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.1: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.1 [concrete]
  281. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.6ff574.1: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.1 = struct_value () [concrete]
  282. // CHECK:STDOUT: %I.facet.ee5: %I.type = facet_value %FExtraImplicitParam, (%I.impl_witness.a7b) [concrete]
  283. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.2: type = fn_type @FExtraImplicitParam.as.I.impl.F.loc85_23.2 [concrete]
  284. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.6ff574.2: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.2 = struct_value () [concrete]
  285. // CHECK:STDOUT: %Destroy.impl_witness.a05: <witness> = impl_witness @FExtraImplicitParam.%Destroy.impl_witness_table [concrete]
  286. // CHECK:STDOUT: %ptr.8c7: type = ptr_type %FExtraImplicitParam [concrete]
  287. // CHECK:STDOUT: %pattern_type.ab8: type = pattern_type %ptr.8c7 [concrete]
  288. // CHECK:STDOUT: %FExtraImplicitParam.as.Destroy.impl.Op.type: type = fn_type @FExtraImplicitParam.as.Destroy.impl.Op [concrete]
  289. // CHECK:STDOUT: %FExtraImplicitParam.as.Destroy.impl.Op: %FExtraImplicitParam.as.Destroy.impl.Op.type = struct_value () [concrete]
  290. // CHECK:STDOUT: %FExtraReturnType: type = class_type @FExtraReturnType [concrete]
  291. // CHECK:STDOUT: %I.impl_witness.59a: <witness> = impl_witness @FExtraReturnType.%I.impl_witness_table [concrete]
  292. // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F.type: type = fn_type @FExtraReturnType.as.I.impl.F [concrete]
  293. // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F: %FExtraReturnType.as.I.impl.F.type = struct_value () [concrete]
  294. // CHECK:STDOUT: %I.facet.d5c: %I.type = facet_value %FExtraReturnType, (%I.impl_witness.59a) [concrete]
  295. // CHECK:STDOUT: %Destroy.impl_witness.3ea: <witness> = impl_witness @FExtraReturnType.%Destroy.impl_witness_table [concrete]
  296. // CHECK:STDOUT: %ptr.147: type = ptr_type %FExtraReturnType [concrete]
  297. // CHECK:STDOUT: %pattern_type.f1c: type = pattern_type %ptr.147 [concrete]
  298. // CHECK:STDOUT: %FExtraReturnType.as.Destroy.impl.Op.type: type = fn_type @FExtraReturnType.as.Destroy.impl.Op [concrete]
  299. // CHECK:STDOUT: %FExtraReturnType.as.Destroy.impl.Op: %FExtraReturnType.as.Destroy.impl.Op.type = struct_value () [concrete]
  300. // CHECK:STDOUT: %J.type: type = facet_type <@J> [concrete]
  301. // CHECK:STDOUT: %Self.ccd: %J.type = bind_symbolic_name Self, 0 [symbolic]
  302. // CHECK:STDOUT: %J.F.type: type = fn_type @J.F [concrete]
  303. // CHECK:STDOUT: %J.F: %J.F.type = struct_value () [concrete]
  304. // CHECK:STDOUT: %J.assoc_type: type = assoc_entity_type @J [concrete]
  305. // CHECK:STDOUT: %assoc0.922: %J.assoc_type = assoc_entity element0, @J.%J.F.decl [concrete]
  306. // CHECK:STDOUT: %FMissingParam: type = class_type @FMissingParam [concrete]
  307. // CHECK:STDOUT: %J.impl_witness.4e9: <witness> = impl_witness @FMissingParam.%J.impl_witness_table [concrete]
  308. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.69596c.1: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.1 [concrete]
  309. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.738f31.1: %FMissingParam.as.J.impl.F.type.69596c.1 = struct_value () [concrete]
  310. // CHECK:STDOUT: %J.facet.94c: %J.type = facet_value %FMissingParam, (%J.impl_witness.4e9) [concrete]
  311. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.type.69596c.2: type = fn_type @FMissingParam.as.J.impl.F.loc117_31.2 [concrete]
  312. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.738f31.2: %FMissingParam.as.J.impl.F.type.69596c.2 = struct_value () [concrete]
  313. // CHECK:STDOUT: %Destroy.impl_witness.672: <witness> = impl_witness @FMissingParam.%Destroy.impl_witness_table [concrete]
  314. // CHECK:STDOUT: %ptr.fc8: type = ptr_type %FMissingParam [concrete]
  315. // CHECK:STDOUT: %pattern_type.c8f: type = pattern_type %ptr.fc8 [concrete]
  316. // CHECK:STDOUT: %FMissingParam.as.Destroy.impl.Op.type: type = fn_type @FMissingParam.as.Destroy.impl.Op [concrete]
  317. // CHECK:STDOUT: %FMissingParam.as.Destroy.impl.Op: %FMissingParam.as.Destroy.impl.Op.type = struct_value () [concrete]
  318. // CHECK:STDOUT: %FMissingImplicitParam: type = class_type @FMissingImplicitParam [concrete]
  319. // CHECK:STDOUT: %J.impl_witness.841: <witness> = impl_witness @FMissingImplicitParam.%J.impl_witness_table [concrete]
  320. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.d97cef.1: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.1 [concrete]
  321. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.01de92.1: %FMissingImplicitParam.as.J.impl.F.type.d97cef.1 = struct_value () [concrete]
  322. // CHECK:STDOUT: %J.facet.e7e: %J.type = facet_value %FMissingImplicitParam, (%J.impl_witness.841) [concrete]
  323. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.type.d97cef.2: type = fn_type @FMissingImplicitParam.as.J.impl.F.loc130_26.2 [concrete]
  324. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.01de92.2: %FMissingImplicitParam.as.J.impl.F.type.d97cef.2 = struct_value () [concrete]
  325. // CHECK:STDOUT: %Destroy.impl_witness.ae6: <witness> = impl_witness @FMissingImplicitParam.%Destroy.impl_witness_table [concrete]
  326. // CHECK:STDOUT: %ptr.c3c: type = ptr_type %FMissingImplicitParam [concrete]
  327. // CHECK:STDOUT: %pattern_type.575: type = pattern_type %ptr.c3c [concrete]
  328. // CHECK:STDOUT: %FMissingImplicitParam.as.Destroy.impl.Op.type: type = fn_type @FMissingImplicitParam.as.Destroy.impl.Op [concrete]
  329. // CHECK:STDOUT: %FMissingImplicitParam.as.Destroy.impl.Op: %FMissingImplicitParam.as.Destroy.impl.Op.type = struct_value () [concrete]
  330. // CHECK:STDOUT: %FMissingReturnType: type = class_type @FMissingReturnType [concrete]
  331. // CHECK:STDOUT: %J.impl_witness.e75: <witness> = impl_witness @FMissingReturnType.%J.impl_witness_table [concrete]
  332. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.123d7a.1: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.1 [concrete]
  333. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.c7d02d.1: %FMissingReturnType.as.J.impl.F.type.123d7a.1 = struct_value () [concrete]
  334. // CHECK:STDOUT: %J.facet.974: %J.type = facet_value %FMissingReturnType, (%J.impl_witness.e75) [concrete]
  335. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.type.123d7a.2: type = fn_type @FMissingReturnType.as.J.impl.F.loc152_30.2 [concrete]
  336. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.c7d02d.2: %FMissingReturnType.as.J.impl.F.type.123d7a.2 = struct_value () [concrete]
  337. // CHECK:STDOUT: %Destroy.impl_witness.8d8: <witness> = impl_witness @FMissingReturnType.%Destroy.impl_witness_table [concrete]
  338. // CHECK:STDOUT: %ptr.41e: type = ptr_type %FMissingReturnType [concrete]
  339. // CHECK:STDOUT: %pattern_type.585: type = pattern_type %ptr.41e [concrete]
  340. // CHECK:STDOUT: %FMissingReturnType.as.Destroy.impl.Op.type: type = fn_type @FMissingReturnType.as.Destroy.impl.Op [concrete]
  341. // CHECK:STDOUT: %FMissingReturnType.as.Destroy.impl.Op: %FMissingReturnType.as.Destroy.impl.Op.type = struct_value () [concrete]
  342. // CHECK:STDOUT: %ImplicitAs.type.cc7: type = generic_interface_type @ImplicitAs [concrete]
  343. // CHECK:STDOUT: %ImplicitAs.generic: %ImplicitAs.type.cc7 = struct_value () [concrete]
  344. // CHECK:STDOUT: %FDifferentParamType: type = class_type @FDifferentParamType [concrete]
  345. // CHECK:STDOUT: %J.impl_witness.cbe: <witness> = impl_witness @FDifferentParamType.%J.impl_witness_table [concrete]
  346. // CHECK:STDOUT: %pattern_type.b90: type = pattern_type %FDifferentParamType [concrete]
  347. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.6b537d.1: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.1 [concrete]
  348. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.04313a.1: %FDifferentParamType.as.J.impl.F.type.6b537d.1 = struct_value () [concrete]
  349. // CHECK:STDOUT: %J.facet.37e: %J.type = facet_value %FDifferentParamType, (%J.impl_witness.cbe) [concrete]
  350. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.type.6b537d.2: type = fn_type @FDifferentParamType.as.J.impl.F.loc171_38.2 [concrete]
  351. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.04313a.2: %FDifferentParamType.as.J.impl.F.type.6b537d.2 = struct_value () [concrete]
  352. // CHECK:STDOUT: %Destroy.impl_witness.443: <witness> = impl_witness @FDifferentParamType.%Destroy.impl_witness_table [concrete]
  353. // CHECK:STDOUT: %ptr.f1f: type = ptr_type %FDifferentParamType [concrete]
  354. // CHECK:STDOUT: %pattern_type.e0c: type = pattern_type %ptr.f1f [concrete]
  355. // CHECK:STDOUT: %FDifferentParamType.as.Destroy.impl.Op.type: type = fn_type @FDifferentParamType.as.Destroy.impl.Op [concrete]
  356. // CHECK:STDOUT: %FDifferentParamType.as.Destroy.impl.Op: %FDifferentParamType.as.Destroy.impl.Op.type = struct_value () [concrete]
  357. // CHECK:STDOUT: %FDifferentImplicitParamType: type = class_type @FDifferentImplicitParamType [concrete]
  358. // CHECK:STDOUT: %J.impl_witness.af2: <witness> = impl_witness @FDifferentImplicitParamType.%J.impl_witness_table [concrete]
  359. // CHECK:STDOUT: %pattern_type.9cc: type = pattern_type %FDifferentImplicitParamType [concrete]
  360. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.1: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1 [concrete]
  361. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.886f70.1: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.1 = struct_value () [concrete]
  362. // CHECK:STDOUT: %J.facet.bf1: %J.type = facet_value %FDifferentImplicitParamType, (%J.impl_witness.af2) [concrete]
  363. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.2: type = fn_type @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2 [concrete]
  364. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.886f70.2: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.2 = struct_value () [concrete]
  365. // CHECK:STDOUT: %Destroy.impl_witness.c2a: <witness> = impl_witness @FDifferentImplicitParamType.%Destroy.impl_witness_table [concrete]
  366. // CHECK:STDOUT: %ptr.dc5: type = ptr_type %FDifferentImplicitParamType [concrete]
  367. // CHECK:STDOUT: %pattern_type.986: type = pattern_type %ptr.dc5 [concrete]
  368. // CHECK:STDOUT: %FDifferentImplicitParamType.as.Destroy.impl.Op.type: type = fn_type @FDifferentImplicitParamType.as.Destroy.impl.Op [concrete]
  369. // CHECK:STDOUT: %FDifferentImplicitParamType.as.Destroy.impl.Op: %FDifferentImplicitParamType.as.Destroy.impl.Op.type = struct_value () [concrete]
  370. // CHECK:STDOUT: %FDifferentReturnType: type = class_type @FDifferentReturnType [concrete]
  371. // CHECK:STDOUT: %J.impl_witness.bc1: <witness> = impl_witness @FDifferentReturnType.%J.impl_witness_table [concrete]
  372. // CHECK:STDOUT: %pattern_type.8ee: type = pattern_type %FDifferentReturnType [concrete]
  373. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.d3b58f.1: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.1 [concrete]
  374. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.be86c9.1: %FDifferentReturnType.as.J.impl.F.type.d3b58f.1 = struct_value () [concrete]
  375. // CHECK:STDOUT: %J.facet.67f: %J.type = facet_value %FDifferentReturnType, (%J.impl_witness.bc1) [concrete]
  376. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.type.d3b58f.2: type = fn_type @FDifferentReturnType.as.J.impl.F.loc200_38.2 [concrete]
  377. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.be86c9.2: %FDifferentReturnType.as.J.impl.F.type.d3b58f.2 = struct_value () [concrete]
  378. // CHECK:STDOUT: %Destroy.impl_witness.6d2: <witness> = impl_witness @FDifferentReturnType.%Destroy.impl_witness_table [concrete]
  379. // CHECK:STDOUT: %ptr.954: type = ptr_type %FDifferentReturnType [concrete]
  380. // CHECK:STDOUT: %pattern_type.246: type = pattern_type %ptr.954 [concrete]
  381. // CHECK:STDOUT: %FDifferentReturnType.as.Destroy.impl.Op.type: type = fn_type @FDifferentReturnType.as.Destroy.impl.Op [concrete]
  382. // CHECK:STDOUT: %FDifferentReturnType.as.Destroy.impl.Op: %FDifferentReturnType.as.Destroy.impl.Op.type = struct_value () [concrete]
  383. // CHECK:STDOUT: %SelfNested.type: type = facet_type <@SelfNested> [concrete]
  384. // CHECK:STDOUT: %Self.2ff: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic]
  385. // CHECK:STDOUT: %Self.as_type.e1e: type = facet_access_type %Self.2ff [symbolic]
  386. // CHECK:STDOUT: %ptr.e87: type = ptr_type %Self.as_type.e1e [symbolic]
  387. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
  388. // CHECK:STDOUT: %Int.type: type = generic_class_type @Int [concrete]
  389. // CHECK:STDOUT: %Int.generic: %Int.type = struct_value () [concrete]
  390. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
  391. // CHECK:STDOUT: %struct_type.x.y.81e: type = struct_type {.x: %Self.as_type.e1e, .y: %i32} [symbolic]
  392. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
  393. // CHECK:STDOUT: %tuple.type.229: type = tuple_type (%ptr.e87, %struct_type.x.y.81e) [symbolic]
  394. // CHECK:STDOUT: %pattern_type.ced: type = pattern_type %tuple.type.229 [symbolic]
  395. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete]
  396. // CHECK:STDOUT: %array_type.873: type = array_type %int_4, %Self.as_type.e1e [symbolic]
  397. // CHECK:STDOUT: %pattern_type.c7e: type = pattern_type %array_type.873 [symbolic]
  398. // CHECK:STDOUT: %SelfNested.F.type: type = fn_type @SelfNested.F [concrete]
  399. // CHECK:STDOUT: %SelfNested.F: %SelfNested.F.type = struct_value () [concrete]
  400. // CHECK:STDOUT: %SelfNested.assoc_type: type = assoc_entity_type @SelfNested [concrete]
  401. // CHECK:STDOUT: %assoc0.beb: %SelfNested.assoc_type = assoc_entity element0, @SelfNested.%SelfNested.F.decl [concrete]
  402. // CHECK:STDOUT: %SelfNestedBadParam: type = class_type @SelfNestedBadParam [concrete]
  403. // CHECK:STDOUT: %SelfNested.impl_witness.e31: <witness> = impl_witness @SelfNestedBadParam.%SelfNested.impl_witness_table [concrete]
  404. // CHECK:STDOUT: %ptr.4cd: type = ptr_type %SelfNestedBadParam [concrete]
  405. // CHECK:STDOUT: %struct_type.x.y.871: type = struct_type {.x: %i32, .y: %i32} [concrete]
  406. // CHECK:STDOUT: %tuple.type.a7d: type = tuple_type (%ptr.4cd, %struct_type.x.y.871) [concrete]
  407. // CHECK:STDOUT: %pattern_type.714: type = pattern_type %tuple.type.a7d [concrete]
  408. // CHECK:STDOUT: %array_type.a41: type = array_type %int_4, %SelfNestedBadParam [concrete]
  409. // CHECK:STDOUT: %pattern_type.1f1: type = pattern_type %array_type.a41 [concrete]
  410. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.1: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete]
  411. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.fa8d04.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.1 = struct_value () [concrete]
  412. // CHECK:STDOUT: %SelfNested.facet.608: %SelfNested.type = facet_value %SelfNestedBadParam, (%SelfNested.impl_witness.e31) [concrete]
  413. // CHECK:STDOUT: %struct_type.x.y.a89: type = struct_type {.x: %SelfNestedBadParam, .y: %i32} [concrete]
  414. // CHECK:STDOUT: %tuple.type.9c9: type = tuple_type (%ptr.4cd, %struct_type.x.y.a89) [concrete]
  415. // CHECK:STDOUT: %pattern_type.a5c: type = pattern_type %tuple.type.9c9 [concrete]
  416. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.2: type = fn_type @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete]
  417. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.fa8d04.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.2 = struct_value () [concrete]
  418. // CHECK:STDOUT: %Destroy.impl_witness.908: <witness> = impl_witness @SelfNestedBadParam.%Destroy.impl_witness_table [concrete]
  419. // CHECK:STDOUT: %pattern_type.2a7: type = pattern_type %ptr.4cd [concrete]
  420. // CHECK:STDOUT: %SelfNestedBadParam.as.Destroy.impl.Op.type: type = fn_type @SelfNestedBadParam.as.Destroy.impl.Op [concrete]
  421. // CHECK:STDOUT: %SelfNestedBadParam.as.Destroy.impl.Op: %SelfNestedBadParam.as.Destroy.impl.Op.type = struct_value () [concrete]
  422. // CHECK:STDOUT: %ptr.f40: type = ptr_type %array_type.a41 [concrete]
  423. // CHECK:STDOUT: %T.as.Destroy.impl.Op.type.ba3: type = fn_type @T.as.Destroy.impl.Op, @T.as.Destroy.impl(%array_type.a41) [concrete]
  424. // CHECK:STDOUT: %T.as.Destroy.impl.Op.d25: %T.as.Destroy.impl.Op.type.ba3 = struct_value () [concrete]
  425. // CHECK:STDOUT: %T.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function %T.as.Destroy.impl.Op.d25, @T.as.Destroy.impl.Op(%array_type.a41) [concrete]
  426. // CHECK:STDOUT: %SelfNestedBadReturnType: type = class_type @SelfNestedBadReturnType [concrete]
  427. // CHECK:STDOUT: %SelfNested.impl_witness.d5e: <witness> = impl_witness @SelfNestedBadReturnType.%SelfNested.impl_witness_table [concrete]
  428. // CHECK:STDOUT: %ptr.612: type = ptr_type %SelfNestedBadReturnType [concrete]
  429. // CHECK:STDOUT: %struct_type.x.y.ac5: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete]
  430. // CHECK:STDOUT: %tuple.type.eb9: type = tuple_type (%ptr.612, %struct_type.x.y.ac5) [concrete]
  431. // CHECK:STDOUT: %pattern_type.23f: type = pattern_type %tuple.type.eb9 [concrete]
  432. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.1: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete]
  433. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.0bc78a.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.1 = struct_value () [concrete]
  434. // CHECK:STDOUT: %SelfNested.facet.766: %SelfNested.type = facet_value %SelfNestedBadReturnType, (%SelfNested.impl_witness.d5e) [concrete]
  435. // CHECK:STDOUT: %array_type.126: type = array_type %int_4, %SelfNestedBadReturnType [concrete]
  436. // CHECK:STDOUT: %pattern_type.f56: type = pattern_type %array_type.126 [concrete]
  437. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.2: type = fn_type @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete]
  438. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.0bc78a.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.2 = struct_value () [concrete]
  439. // CHECK:STDOUT: %Destroy.impl_witness.9f5: <witness> = impl_witness @SelfNestedBadReturnType.%Destroy.impl_witness_table [concrete]
  440. // CHECK:STDOUT: %pattern_type.4de: type = pattern_type %ptr.612 [concrete]
  441. // CHECK:STDOUT: %SelfNestedBadReturnType.as.Destroy.impl.Op.type: type = fn_type @SelfNestedBadReturnType.as.Destroy.impl.Op [concrete]
  442. // CHECK:STDOUT: %SelfNestedBadReturnType.as.Destroy.impl.Op: %SelfNestedBadReturnType.as.Destroy.impl.Op.type = struct_value () [concrete]
  443. // CHECK:STDOUT: }
  444. // CHECK:STDOUT:
  445. // CHECK:STDOUT: imports {
  446. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  447. // CHECK:STDOUT: .Destroy = %Core.Destroy
  448. // CHECK:STDOUT: .Bool = %Core.Bool
  449. // CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
  450. // CHECK:STDOUT: .Int = %Core.Int
  451. // CHECK:STDOUT: import Core//prelude
  452. // CHECK:STDOUT: import Core//prelude/...
  453. // CHECK:STDOUT: }
  454. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  455. // CHECK:STDOUT: %Core.Bool: %Bool.type = import_ref Core//prelude/parts/bool, Bool, loaded [concrete = constants.%Bool]
  456. // CHECK:STDOUT: %Core.ImplicitAs: %ImplicitAs.type.cc7 = import_ref Core//prelude/parts/as, ImplicitAs, loaded [concrete = constants.%ImplicitAs.generic]
  457. // CHECK:STDOUT: %Core.Int: %Int.type = import_ref Core//prelude/parts/int, Int, loaded [concrete = constants.%Int.generic]
  458. // CHECK:STDOUT: }
  459. // CHECK:STDOUT:
  460. // CHECK:STDOUT: file {
  461. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  462. // CHECK:STDOUT: .Core = imports.%Core
  463. // CHECK:STDOUT: .I = %I.decl
  464. // CHECK:STDOUT: .NoF = %NoF.decl
  465. // CHECK:STDOUT: .FNotFunction = %FNotFunction.decl
  466. // CHECK:STDOUT: .PossiblyF = %PossiblyF.decl
  467. // CHECK:STDOUT: .FAlias = %FAlias.decl
  468. // CHECK:STDOUT: .FExtraParam = %FExtraParam.decl
  469. // CHECK:STDOUT: .FExtraImplicitParam = %FExtraImplicitParam.decl
  470. // CHECK:STDOUT: .FExtraReturnType = %FExtraReturnType.decl
  471. // CHECK:STDOUT: .J = %J.decl
  472. // CHECK:STDOUT: .FMissingParam = %FMissingParam.decl
  473. // CHECK:STDOUT: .FMissingImplicitParam = %FMissingImplicitParam.decl
  474. // CHECK:STDOUT: .FMissingReturnType = %FMissingReturnType.decl
  475. // CHECK:STDOUT: .FDifferentParamType = %FDifferentParamType.decl
  476. // CHECK:STDOUT: .FDifferentImplicitParamType = %FDifferentImplicitParamType.decl
  477. // CHECK:STDOUT: .FDifferentReturnType = %FDifferentReturnType.decl
  478. // CHECK:STDOUT: .SelfNested = %SelfNested.decl
  479. // CHECK:STDOUT: .SelfNestedBadParam = %SelfNestedBadParam.decl
  480. // CHECK:STDOUT: .SelfNestedBadReturnType = %SelfNestedBadReturnType.decl
  481. // CHECK:STDOUT: }
  482. // CHECK:STDOUT: %Core.import = import Core
  483. // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
  484. // CHECK:STDOUT: %NoF.decl: type = class_decl @NoF [concrete = constants.%NoF] {} {}
  485. // CHECK:STDOUT: %FNotFunction.decl: type = class_decl @FNotFunction [concrete = constants.%FNotFunction] {} {}
  486. // CHECK:STDOUT: %PossiblyF.decl: %PossiblyF.type = fn_decl @PossiblyF [concrete = constants.%PossiblyF] {} {}
  487. // CHECK:STDOUT: %FAlias.decl: type = class_decl @FAlias [concrete = constants.%FAlias] {} {}
  488. // CHECK:STDOUT: %FExtraParam.decl: type = class_decl @FExtraParam [concrete = constants.%FExtraParam] {} {}
  489. // CHECK:STDOUT: %FExtraImplicitParam.decl: type = class_decl @FExtraImplicitParam [concrete = constants.%FExtraImplicitParam] {} {}
  490. // CHECK:STDOUT: %FExtraReturnType.decl: type = class_decl @FExtraReturnType [concrete = constants.%FExtraReturnType] {} {}
  491. // CHECK:STDOUT: %J.decl: type = interface_decl @J [concrete = constants.%J.type] {} {}
  492. // CHECK:STDOUT: %FMissingParam.decl: type = class_decl @FMissingParam [concrete = constants.%FMissingParam] {} {}
  493. // CHECK:STDOUT: %FMissingImplicitParam.decl: type = class_decl @FMissingImplicitParam [concrete = constants.%FMissingImplicitParam] {} {}
  494. // CHECK:STDOUT: %FMissingReturnType.decl: type = class_decl @FMissingReturnType [concrete = constants.%FMissingReturnType] {} {}
  495. // CHECK:STDOUT: %FDifferentParamType.decl: type = class_decl @FDifferentParamType [concrete = constants.%FDifferentParamType] {} {}
  496. // CHECK:STDOUT: %FDifferentImplicitParamType.decl: type = class_decl @FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType] {} {}
  497. // CHECK:STDOUT: %FDifferentReturnType.decl: type = class_decl @FDifferentReturnType [concrete = constants.%FDifferentReturnType] {} {}
  498. // CHECK:STDOUT: %SelfNested.decl: type = interface_decl @SelfNested [concrete = constants.%SelfNested.type] {} {}
  499. // CHECK:STDOUT: %SelfNestedBadParam.decl: type = class_decl @SelfNestedBadParam [concrete = constants.%SelfNestedBadParam] {} {}
  500. // CHECK:STDOUT: %SelfNestedBadReturnType.decl: type = class_decl @SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType] {} {}
  501. // CHECK:STDOUT: }
  502. // CHECK:STDOUT:
  503. // CHECK:STDOUT: interface @I {
  504. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.826]
  505. // CHECK:STDOUT: %I.F.decl: %I.F.type = fn_decl @I.F [concrete = constants.%I.F] {} {}
  506. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %I.F.decl [concrete = constants.%assoc0.82e]
  507. // CHECK:STDOUT:
  508. // CHECK:STDOUT: !members:
  509. // CHECK:STDOUT: .Self = %Self
  510. // CHECK:STDOUT: .F = %assoc0
  511. // CHECK:STDOUT: witness = (%I.F.decl)
  512. // CHECK:STDOUT: }
  513. // CHECK:STDOUT:
  514. // CHECK:STDOUT: interface @J {
  515. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.ccd]
  516. // CHECK:STDOUT: %J.F.decl: %J.F.type = fn_decl @J.F [concrete = constants.%J.F] {
  517. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  518. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  519. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  520. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  521. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  522. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  523. // CHECK:STDOUT: } {
  524. // CHECK:STDOUT: %Bool.call.loc103_44: init type = call constants.%Bool() [concrete = bool]
  525. // CHECK:STDOUT: %.loc103_44.1: type = value_of_initializer %Bool.call.loc103_44 [concrete = bool]
  526. // CHECK:STDOUT: %.loc103_44.2: type = converted %Bool.call.loc103_44, %.loc103_44.1 [concrete = bool]
  527. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  528. // CHECK:STDOUT: %.loc103_26.1: type = splice_block %.loc103_26.3 [concrete = bool] {
  529. // CHECK:STDOUT: %Bool.call.loc103_26: init type = call constants.%Bool() [concrete = bool]
  530. // CHECK:STDOUT: %.loc103_26.2: type = value_of_initializer %Bool.call.loc103_26 [concrete = bool]
  531. // CHECK:STDOUT: %.loc103_26.3: type = converted %Bool.call.loc103_26, %.loc103_26.2 [concrete = bool]
  532. // CHECK:STDOUT: }
  533. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  534. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  535. // CHECK:STDOUT: %.loc103_35.1: type = splice_block %.loc103_35.3 [concrete = bool] {
  536. // CHECK:STDOUT: %Bool.call.loc103_35: init type = call constants.%Bool() [concrete = bool]
  537. // CHECK:STDOUT: %.loc103_35.2: type = value_of_initializer %Bool.call.loc103_35 [concrete = bool]
  538. // CHECK:STDOUT: %.loc103_35.3: type = converted %Bool.call.loc103_35, %.loc103_35.2 [concrete = bool]
  539. // CHECK:STDOUT: }
  540. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  541. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  542. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  543. // CHECK:STDOUT: }
  544. // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %J.F.decl [concrete = constants.%assoc0.922]
  545. // CHECK:STDOUT:
  546. // CHECK:STDOUT: !members:
  547. // CHECK:STDOUT: .Self = %Self
  548. // CHECK:STDOUT: .F = %assoc0
  549. // CHECK:STDOUT: witness = (%J.F.decl)
  550. // CHECK:STDOUT: }
  551. // CHECK:STDOUT:
  552. // CHECK:STDOUT: interface @SelfNested {
  553. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.2ff]
  554. // CHECK:STDOUT: %SelfNested.F.decl: %SelfNested.F.type = fn_decl @SelfNested.F [concrete = constants.%SelfNested.F] {
  555. // CHECK:STDOUT: %x.patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.ced) = binding_pattern x [concrete]
  556. // CHECK:STDOUT: %x.param_patt: @SelfNested.F.%pattern_type.loc211_8 (%pattern_type.ced) = value_param_pattern %x.patt, call_param0 [concrete]
  557. // CHECK:STDOUT: %return.patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.c7e) = return_slot_pattern [concrete]
  558. // CHECK:STDOUT: %return.param_patt: @SelfNested.F.%pattern_type.loc211_41 (%pattern_type.c7e) = out_param_pattern %return.patt, call_param1 [concrete]
  559. // CHECK:STDOUT: } {
  560. // CHECK:STDOUT: %Self.ref.loc211_50: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  561. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  562. // CHECK:STDOUT: %Self.as_type.loc211_50: type = facet_access_type %Self.ref.loc211_50 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  563. // CHECK:STDOUT: %.loc211_50: type = converted %Self.ref.loc211_50, %Self.as_type.loc211_50 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  564. // CHECK:STDOUT: %array_type.loc211_57.2: type = array_type %int_4, %.loc211_50 [symbolic = %array_type.loc211_57.1 (constants.%array_type.873)]
  565. // CHECK:STDOUT: %x.param: @SelfNested.F.%tuple.type (%tuple.type.229) = value_param call_param0
  566. // CHECK:STDOUT: %.loc211_38.1: type = splice_block %.loc211_38.3 [symbolic = %tuple.type (constants.%tuple.type.229)] {
  567. // CHECK:STDOUT: %Self.ref.loc211_12: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  568. // CHECK:STDOUT: %Self.as_type.loc211_16.2: type = facet_access_type %Self.ref.loc211_12 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  569. // CHECK:STDOUT: %.loc211_16: type = converted %Self.ref.loc211_12, %Self.as_type.loc211_16.2 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  570. // CHECK:STDOUT: %ptr.loc211_16.2: type = ptr_type %.loc211_16 [symbolic = %ptr.loc211_16.1 (constants.%ptr.e87)]
  571. // CHECK:STDOUT: %Self.ref.loc211_24: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.2ff)]
  572. // CHECK:STDOUT: %Self.as_type.loc211_24: type = facet_access_type %Self.ref.loc211_24 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  573. // CHECK:STDOUT: %.loc211_24: type = converted %Self.ref.loc211_24, %Self.as_type.loc211_24 [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  574. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  575. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  576. // CHECK:STDOUT: %struct_type.x.y.loc211_37.2: type = struct_type {.x: @SelfNested.F.%Self.as_type.loc211_16.1 (%Self.as_type.e1e), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.81e)]
  577. // CHECK:STDOUT: %.loc211_38.2: %tuple.type.24b = tuple_literal (%ptr.loc211_16.2, %struct_type.x.y.loc211_37.2)
  578. // CHECK:STDOUT: %.loc211_38.3: type = converted %.loc211_38.2, constants.%tuple.type.229 [symbolic = %tuple.type (constants.%tuple.type.229)]
  579. // CHECK:STDOUT: }
  580. // CHECK:STDOUT: %x: @SelfNested.F.%tuple.type (%tuple.type.229) = bind_name x, %x.param
  581. // CHECK:STDOUT: %return.param: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.873) = out_param call_param1
  582. // CHECK:STDOUT: %return: ref @SelfNested.F.%array_type.loc211_57.1 (%array_type.873) = return_slot %return.param
  583. // CHECK:STDOUT: }
  584. // CHECK:STDOUT: %assoc0: %SelfNested.assoc_type = assoc_entity element0, %SelfNested.F.decl [concrete = constants.%assoc0.beb]
  585. // CHECK:STDOUT:
  586. // CHECK:STDOUT: !members:
  587. // CHECK:STDOUT: .Self = %Self
  588. // CHECK:STDOUT: .F = %assoc0
  589. // CHECK:STDOUT: witness = (%SelfNested.F.decl)
  590. // CHECK:STDOUT: }
  591. // CHECK:STDOUT:
  592. // CHECK:STDOUT: impl @NoF.as.I.impl: %Self.ref as %I.ref {
  593. // CHECK:STDOUT: !members:
  594. // CHECK:STDOUT: .F = <poisoned>
  595. // CHECK:STDOUT: witness = @NoF.%I.impl_witness
  596. // CHECK:STDOUT: }
  597. // CHECK:STDOUT:
  598. // CHECK:STDOUT: impl @NoF.as.Destroy.impl: @NoF.%Self.ref as constants.%Destroy.type {
  599. // CHECK:STDOUT: %NoF.as.Destroy.impl.Op.decl: %NoF.as.Destroy.impl.Op.type = fn_decl @NoF.as.Destroy.impl.Op [concrete = constants.%NoF.as.Destroy.impl.Op] {
  600. // CHECK:STDOUT: %self.patt: %pattern_type.7b5 = binding_pattern self [concrete]
  601. // CHECK:STDOUT: %self.param_patt: %pattern_type.7b5 = value_param_pattern %self.patt, call_param0 [concrete]
  602. // CHECK:STDOUT: %.loc17: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  603. // CHECK:STDOUT: } {
  604. // CHECK:STDOUT: %self.param: %ptr.0f9 = value_param call_param0
  605. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
  606. // CHECK:STDOUT: %self: %ptr.0f9 = bind_name self, %self.param
  607. // CHECK:STDOUT: }
  608. // CHECK:STDOUT:
  609. // CHECK:STDOUT: !members:
  610. // CHECK:STDOUT: .Op = %NoF.as.Destroy.impl.Op.decl
  611. // CHECK:STDOUT: witness = @NoF.%Destroy.impl_witness
  612. // CHECK:STDOUT: }
  613. // CHECK:STDOUT:
  614. // CHECK:STDOUT: impl @FNotFunction.as.I.impl: %Self.ref as %I.ref {
  615. // CHECK:STDOUT: %F.decl: type = class_decl @F [concrete = constants.%F] {} {}
  616. // CHECK:STDOUT:
  617. // CHECK:STDOUT: !members:
  618. // CHECK:STDOUT: .F = %F.decl
  619. // CHECK:STDOUT: witness = @FNotFunction.%I.impl_witness
  620. // CHECK:STDOUT: }
  621. // CHECK:STDOUT:
  622. // CHECK:STDOUT: impl @FNotFunction.as.Destroy.impl: @FNotFunction.%Self.ref as constants.%Destroy.type {
  623. // CHECK:STDOUT: %FNotFunction.as.Destroy.impl.Op.decl: %FNotFunction.as.Destroy.impl.Op.type = fn_decl @FNotFunction.as.Destroy.impl.Op [concrete = constants.%FNotFunction.as.Destroy.impl.Op] {
  624. // CHECK:STDOUT: %self.patt: %pattern_type.27c = binding_pattern self [concrete]
  625. // CHECK:STDOUT: %self.param_patt: %pattern_type.27c = value_param_pattern %self.patt, call_param0 [concrete]
  626. // CHECK:STDOUT: %.loc28: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  627. // CHECK:STDOUT: } {
  628. // CHECK:STDOUT: %self.param: %ptr.2b2 = value_param call_param0
  629. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
  630. // CHECK:STDOUT: %self: %ptr.2b2 = bind_name self, %self.param
  631. // CHECK:STDOUT: }
  632. // CHECK:STDOUT:
  633. // CHECK:STDOUT: !members:
  634. // CHECK:STDOUT: .Op = %FNotFunction.as.Destroy.impl.Op.decl
  635. // CHECK:STDOUT: witness = @FNotFunction.%Destroy.impl_witness
  636. // CHECK:STDOUT: }
  637. // CHECK:STDOUT:
  638. // CHECK:STDOUT: impl @FAlias.as.I.impl: %Self.ref as %I.ref {
  639. // CHECK:STDOUT: %PossiblyF.ref: %PossiblyF.type = name_ref PossiblyF, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  640. // CHECK:STDOUT: %F: %PossiblyF.type = bind_alias F, file.%PossiblyF.decl [concrete = constants.%PossiblyF]
  641. // CHECK:STDOUT:
  642. // CHECK:STDOUT: !members:
  643. // CHECK:STDOUT: .PossiblyF = <poisoned>
  644. // CHECK:STDOUT: .F = %F
  645. // CHECK:STDOUT: witness = @FAlias.%I.impl_witness
  646. // CHECK:STDOUT: }
  647. // CHECK:STDOUT:
  648. // CHECK:STDOUT: impl @FAlias.as.Destroy.impl: @FAlias.%Self.ref as constants.%Destroy.type {
  649. // CHECK:STDOUT: %FAlias.as.Destroy.impl.Op.decl: %FAlias.as.Destroy.impl.Op.type = fn_decl @FAlias.as.Destroy.impl.Op [concrete = constants.%FAlias.as.Destroy.impl.Op] {
  650. // CHECK:STDOUT: %self.patt: %pattern_type.310 = binding_pattern self [concrete]
  651. // CHECK:STDOUT: %self.param_patt: %pattern_type.310 = value_param_pattern %self.patt, call_param0 [concrete]
  652. // CHECK:STDOUT: %.loc44: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  653. // CHECK:STDOUT: } {
  654. // CHECK:STDOUT: %self.param: %ptr.4bf = value_param call_param0
  655. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
  656. // CHECK:STDOUT: %self: %ptr.4bf = bind_name self, %self.param
  657. // CHECK:STDOUT: }
  658. // CHECK:STDOUT:
  659. // CHECK:STDOUT: !members:
  660. // CHECK:STDOUT: .Op = %FAlias.as.Destroy.impl.Op.decl
  661. // CHECK:STDOUT: witness = @FAlias.%Destroy.impl_witness
  662. // CHECK:STDOUT: }
  663. // CHECK:STDOUT:
  664. // CHECK:STDOUT: impl @FExtraParam.as.I.impl: %Self.ref as %I.ref {
  665. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.decl.loc69_18.1: %FExtraParam.as.I.impl.F.type.44ef8c.1 = fn_decl @FExtraParam.as.I.impl.F.loc69_18.1 [concrete = constants.%FExtraParam.as.I.impl.F.424e9e.1] {
  666. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  667. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  668. // CHECK:STDOUT: } {
  669. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  670. // CHECK:STDOUT: %.loc69_13.1: type = splice_block %.loc69_13.3 [concrete = bool] {
  671. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  672. // CHECK:STDOUT: %.loc69_13.2: type = value_of_initializer %Bool.call [concrete = bool]
  673. // CHECK:STDOUT: %.loc69_13.3: type = converted %Bool.call, %.loc69_13.2 [concrete = bool]
  674. // CHECK:STDOUT: }
  675. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  676. // CHECK:STDOUT: }
  677. // CHECK:STDOUT: %FExtraParam.as.I.impl.F.decl.loc69_18.2: %FExtraParam.as.I.impl.F.type.44ef8c.2 = fn_decl @FExtraParam.as.I.impl.F.loc69_18.2 [concrete = constants.%FExtraParam.as.I.impl.F.424e9e.2] {} {}
  678. // CHECK:STDOUT:
  679. // CHECK:STDOUT: !members:
  680. // CHECK:STDOUT: .F = %FExtraParam.as.I.impl.F.decl.loc69_18.1
  681. // CHECK:STDOUT: witness = @FExtraParam.%I.impl_witness
  682. // CHECK:STDOUT: }
  683. // CHECK:STDOUT:
  684. // CHECK:STDOUT: impl @FExtraParam.as.Destroy.impl: @FExtraParam.%Self.ref as constants.%Destroy.type {
  685. // CHECK:STDOUT: %FExtraParam.as.Destroy.impl.Op.decl: %FExtraParam.as.Destroy.impl.Op.type = fn_decl @FExtraParam.as.Destroy.impl.Op [concrete = constants.%FExtraParam.as.Destroy.impl.Op] {
  686. // CHECK:STDOUT: %self.patt: %pattern_type.8d3 = binding_pattern self [concrete]
  687. // CHECK:STDOUT: %self.param_patt: %pattern_type.8d3 = value_param_pattern %self.patt, call_param0 [concrete]
  688. // CHECK:STDOUT: %.loc57: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  689. // CHECK:STDOUT: } {
  690. // CHECK:STDOUT: %self.param: %ptr.0f2 = value_param call_param0
  691. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
  692. // CHECK:STDOUT: %self: %ptr.0f2 = bind_name self, %self.param
  693. // CHECK:STDOUT: }
  694. // CHECK:STDOUT:
  695. // CHECK:STDOUT: !members:
  696. // CHECK:STDOUT: .Op = %FExtraParam.as.Destroy.impl.Op.decl
  697. // CHECK:STDOUT: witness = @FExtraParam.%Destroy.impl_witness
  698. // CHECK:STDOUT: }
  699. // CHECK:STDOUT:
  700. // CHECK:STDOUT: impl @FExtraImplicitParam.as.I.impl: %Self.ref as %I.ref {
  701. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.1 = fn_decl @FExtraImplicitParam.as.I.impl.F.loc85_23.1 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.6ff574.1] {
  702. // CHECK:STDOUT: %self.patt: %pattern_type.8ae = binding_pattern self [concrete]
  703. // CHECK:STDOUT: %self.param_patt: %pattern_type.8ae = value_param_pattern %self.patt, call_param0 [concrete]
  704. // CHECK:STDOUT: } {
  705. // CHECK:STDOUT: %self.param: %FExtraImplicitParam = value_param call_param0
  706. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  707. // CHECK:STDOUT: %self: %FExtraImplicitParam = bind_name self, %self.param
  708. // CHECK:STDOUT: }
  709. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.2: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.2 = fn_decl @FExtraImplicitParam.as.I.impl.F.loc85_23.2 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.6ff574.2] {} {}
  710. // CHECK:STDOUT:
  711. // CHECK:STDOUT: !members:
  712. // CHECK:STDOUT: .F = %FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1
  713. // CHECK:STDOUT: witness = @FExtraImplicitParam.%I.impl_witness
  714. // CHECK:STDOUT: }
  715. // CHECK:STDOUT:
  716. // CHECK:STDOUT: impl @FExtraImplicitParam.as.Destroy.impl: @FExtraImplicitParam.%Self.ref as constants.%Destroy.type {
  717. // CHECK:STDOUT: %FExtraImplicitParam.as.Destroy.impl.Op.decl: %FExtraImplicitParam.as.Destroy.impl.Op.type = fn_decl @FExtraImplicitParam.as.Destroy.impl.Op [concrete = constants.%FExtraImplicitParam.as.Destroy.impl.Op] {
  718. // CHECK:STDOUT: %self.patt: %pattern_type.ab8 = binding_pattern self [concrete]
  719. // CHECK:STDOUT: %self.param_patt: %pattern_type.ab8 = value_param_pattern %self.patt, call_param0 [concrete]
  720. // CHECK:STDOUT: %.loc73: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  721. // CHECK:STDOUT: } {
  722. // CHECK:STDOUT: %self.param: %ptr.8c7 = value_param call_param0
  723. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  724. // CHECK:STDOUT: %self: %ptr.8c7 = bind_name self, %self.param
  725. // CHECK:STDOUT: }
  726. // CHECK:STDOUT:
  727. // CHECK:STDOUT: !members:
  728. // CHECK:STDOUT: .Op = %FExtraImplicitParam.as.Destroy.impl.Op.decl
  729. // CHECK:STDOUT: witness = @FExtraImplicitParam.%Destroy.impl_witness
  730. // CHECK:STDOUT: }
  731. // CHECK:STDOUT:
  732. // CHECK:STDOUT: impl @FExtraReturnType.as.I.impl: %Self.ref as %I.ref {
  733. // CHECK:STDOUT: %FExtraReturnType.as.I.impl.F.decl: %FExtraReturnType.as.I.impl.F.type = fn_decl @FExtraReturnType.as.I.impl.F [concrete = constants.%FExtraReturnType.as.I.impl.F] {
  734. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  735. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param0 [concrete]
  736. // CHECK:STDOUT: } {
  737. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  738. // CHECK:STDOUT: %.loc99_15.1: type = value_of_initializer %Bool.call [concrete = bool]
  739. // CHECK:STDOUT: %.loc99_15.2: type = converted %Bool.call, %.loc99_15.1 [concrete = bool]
  740. // CHECK:STDOUT: %return.param: ref bool = out_param call_param0
  741. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  742. // CHECK:STDOUT: }
  743. // CHECK:STDOUT:
  744. // CHECK:STDOUT: !members:
  745. // CHECK:STDOUT: .F = %FExtraReturnType.as.I.impl.F.decl
  746. // CHECK:STDOUT: witness = @FExtraReturnType.%I.impl_witness
  747. // CHECK:STDOUT: }
  748. // CHECK:STDOUT:
  749. // CHECK:STDOUT: impl @FExtraReturnType.as.Destroy.impl: @FExtraReturnType.%Self.ref as constants.%Destroy.type {
  750. // CHECK:STDOUT: %FExtraReturnType.as.Destroy.impl.Op.decl: %FExtraReturnType.as.Destroy.impl.Op.type = fn_decl @FExtraReturnType.as.Destroy.impl.Op [concrete = constants.%FExtraReturnType.as.Destroy.impl.Op] {
  751. // CHECK:STDOUT: %self.patt: %pattern_type.f1c = binding_pattern self [concrete]
  752. // CHECK:STDOUT: %self.param_patt: %pattern_type.f1c = value_param_pattern %self.patt, call_param0 [concrete]
  753. // CHECK:STDOUT: %.loc90: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  754. // CHECK:STDOUT: } {
  755. // CHECK:STDOUT: %self.param: %ptr.147 = value_param call_param0
  756. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
  757. // CHECK:STDOUT: %self: %ptr.147 = bind_name self, %self.param
  758. // CHECK:STDOUT: }
  759. // CHECK:STDOUT:
  760. // CHECK:STDOUT: !members:
  761. // CHECK:STDOUT: .Op = %FExtraReturnType.as.Destroy.impl.Op.decl
  762. // CHECK:STDOUT: witness = @FExtraReturnType.%Destroy.impl_witness
  763. // CHECK:STDOUT: }
  764. // CHECK:STDOUT:
  765. // CHECK:STDOUT: impl @FMissingParam.as.J.impl: %Self.ref as %J.ref {
  766. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.decl.loc117_31.1: %FMissingParam.as.J.impl.F.type.69596c.1 = fn_decl @FMissingParam.as.J.impl.F.loc117_31.1 [concrete = constants.%FMissingParam.as.J.impl.F.738f31.1] {
  767. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  768. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  769. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  770. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  771. // CHECK:STDOUT: } {
  772. // CHECK:STDOUT: %Bool.call.loc117_27: init type = call constants.%Bool() [concrete = bool]
  773. // CHECK:STDOUT: %.loc117_27.1: type = value_of_initializer %Bool.call.loc117_27 [concrete = bool]
  774. // CHECK:STDOUT: %.loc117_27.2: type = converted %Bool.call.loc117_27, %.loc117_27.1 [concrete = bool]
  775. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  776. // CHECK:STDOUT: %.loc117_16.1: type = splice_block %.loc117_16.3 [concrete = bool] {
  777. // CHECK:STDOUT: %Bool.call.loc117_16: init type = call constants.%Bool() [concrete = bool]
  778. // CHECK:STDOUT: %.loc117_16.2: type = value_of_initializer %Bool.call.loc117_16 [concrete = bool]
  779. // CHECK:STDOUT: %.loc117_16.3: type = converted %Bool.call.loc117_16, %.loc117_16.2 [concrete = bool]
  780. // CHECK:STDOUT: }
  781. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  782. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  783. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  784. // CHECK:STDOUT: }
  785. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.decl.loc117_31.2: %FMissingParam.as.J.impl.F.type.69596c.2 = fn_decl @FMissingParam.as.J.impl.F.loc117_31.2 [concrete = constants.%FMissingParam.as.J.impl.F.738f31.2] {
  786. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  787. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  788. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  789. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  790. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  791. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  792. // CHECK:STDOUT: } {
  793. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  794. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  795. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  796. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  797. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  798. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  799. // CHECK:STDOUT: }
  800. // CHECK:STDOUT:
  801. // CHECK:STDOUT: !members:
  802. // CHECK:STDOUT: .F = %FMissingParam.as.J.impl.F.decl.loc117_31.1
  803. // CHECK:STDOUT: witness = @FMissingParam.%J.impl_witness
  804. // CHECK:STDOUT: }
  805. // CHECK:STDOUT:
  806. // CHECK:STDOUT: impl @FMissingParam.as.Destroy.impl: @FMissingParam.%Self.ref as constants.%Destroy.type {
  807. // CHECK:STDOUT: %FMissingParam.as.Destroy.impl.Op.decl: %FMissingParam.as.Destroy.impl.Op.type = fn_decl @FMissingParam.as.Destroy.impl.Op [concrete = constants.%FMissingParam.as.Destroy.impl.Op] {
  808. // CHECK:STDOUT: %self.patt: %pattern_type.c8f = binding_pattern self [concrete]
  809. // CHECK:STDOUT: %self.param_patt: %pattern_type.c8f = value_param_pattern %self.patt, call_param0 [concrete]
  810. // CHECK:STDOUT: %.loc105: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  811. // CHECK:STDOUT: } {
  812. // CHECK:STDOUT: %self.param: %ptr.fc8 = value_param call_param0
  813. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
  814. // CHECK:STDOUT: %self: %ptr.fc8 = bind_name self, %self.param
  815. // CHECK:STDOUT: }
  816. // CHECK:STDOUT:
  817. // CHECK:STDOUT: !members:
  818. // CHECK:STDOUT: .Op = %FMissingParam.as.Destroy.impl.Op.decl
  819. // CHECK:STDOUT: witness = @FMissingParam.%Destroy.impl_witness
  820. // CHECK:STDOUT: }
  821. // CHECK:STDOUT:
  822. // CHECK:STDOUT: impl @FMissingImplicitParam.as.J.impl: %Self.ref as %J.ref {
  823. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1: %FMissingImplicitParam.as.J.impl.F.type.d97cef.1 = fn_decl @FMissingImplicitParam.as.J.impl.F.loc130_26.1 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.01de92.1] {
  824. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  825. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param0 [concrete]
  826. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  827. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  828. // CHECK:STDOUT: } {
  829. // CHECK:STDOUT: %Bool.call.loc130_22: init type = call constants.%Bool() [concrete = bool]
  830. // CHECK:STDOUT: %.loc130_22.1: type = value_of_initializer %Bool.call.loc130_22 [concrete = bool]
  831. // CHECK:STDOUT: %.loc130_22.2: type = converted %Bool.call.loc130_22, %.loc130_22.1 [concrete = bool]
  832. // CHECK:STDOUT: %b.param: bool = value_param call_param0
  833. // CHECK:STDOUT: %.loc130_13.1: type = splice_block %.loc130_13.3 [concrete = bool] {
  834. // CHECK:STDOUT: %Bool.call.loc130_13: init type = call constants.%Bool() [concrete = bool]
  835. // CHECK:STDOUT: %.loc130_13.2: type = value_of_initializer %Bool.call.loc130_13 [concrete = bool]
  836. // CHECK:STDOUT: %.loc130_13.3: type = converted %Bool.call.loc130_13, %.loc130_13.2 [concrete = bool]
  837. // CHECK:STDOUT: }
  838. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  839. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  840. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  841. // CHECK:STDOUT: }
  842. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.2: %FMissingImplicitParam.as.J.impl.F.type.d97cef.2 = fn_decl @FMissingImplicitParam.as.J.impl.F.loc130_26.2 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.01de92.2] {
  843. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  844. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  845. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  846. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  847. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  848. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  849. // CHECK:STDOUT: } {
  850. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  851. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  852. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  853. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  854. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  855. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  856. // CHECK:STDOUT: }
  857. // CHECK:STDOUT:
  858. // CHECK:STDOUT: !members:
  859. // CHECK:STDOUT: .F = %FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1
  860. // CHECK:STDOUT: witness = @FMissingImplicitParam.%J.impl_witness
  861. // CHECK:STDOUT: }
  862. // CHECK:STDOUT:
  863. // CHECK:STDOUT: impl @FMissingImplicitParam.as.Destroy.impl: @FMissingImplicitParam.%Self.ref as constants.%Destroy.type {
  864. // CHECK:STDOUT: %FMissingImplicitParam.as.Destroy.impl.Op.decl: %FMissingImplicitParam.as.Destroy.impl.Op.type = fn_decl @FMissingImplicitParam.as.Destroy.impl.Op [concrete = constants.%FMissingImplicitParam.as.Destroy.impl.Op] {
  865. // CHECK:STDOUT: %self.patt: %pattern_type.575 = binding_pattern self [concrete]
  866. // CHECK:STDOUT: %self.param_patt: %pattern_type.575 = value_param_pattern %self.patt, call_param0 [concrete]
  867. // CHECK:STDOUT: %.loc121: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  868. // CHECK:STDOUT: } {
  869. // CHECK:STDOUT: %self.param: %ptr.c3c = value_param call_param0
  870. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
  871. // CHECK:STDOUT: %self: %ptr.c3c = bind_name self, %self.param
  872. // CHECK:STDOUT: }
  873. // CHECK:STDOUT:
  874. // CHECK:STDOUT: !members:
  875. // CHECK:STDOUT: .Op = %FMissingImplicitParam.as.Destroy.impl.Op.decl
  876. // CHECK:STDOUT: witness = @FMissingImplicitParam.%Destroy.impl_witness
  877. // CHECK:STDOUT: }
  878. // CHECK:STDOUT:
  879. // CHECK:STDOUT: impl @FMissingReturnType.as.J.impl: %Self.ref as %J.ref {
  880. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.decl.loc152_30.1: %FMissingReturnType.as.J.impl.F.type.123d7a.1 = fn_decl @FMissingReturnType.as.J.impl.F.loc152_30.1 [concrete = constants.%FMissingReturnType.as.J.impl.F.c7d02d.1] {
  881. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  882. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  883. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  884. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  885. // CHECK:STDOUT: } {
  886. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  887. // CHECK:STDOUT: %.loc152_16.1: type = splice_block %.loc152_16.3 [concrete = bool] {
  888. // CHECK:STDOUT: %Bool.call.loc152_16: init type = call constants.%Bool() [concrete = bool]
  889. // CHECK:STDOUT: %.loc152_16.2: type = value_of_initializer %Bool.call.loc152_16 [concrete = bool]
  890. // CHECK:STDOUT: %.loc152_16.3: type = converted %Bool.call.loc152_16, %.loc152_16.2 [concrete = bool]
  891. // CHECK:STDOUT: }
  892. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  893. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  894. // CHECK:STDOUT: %.loc152_25.1: type = splice_block %.loc152_25.3 [concrete = bool] {
  895. // CHECK:STDOUT: %Bool.call.loc152_25: init type = call constants.%Bool() [concrete = bool]
  896. // CHECK:STDOUT: %.loc152_25.2: type = value_of_initializer %Bool.call.loc152_25 [concrete = bool]
  897. // CHECK:STDOUT: %.loc152_25.3: type = converted %Bool.call.loc152_25, %.loc152_25.2 [concrete = bool]
  898. // CHECK:STDOUT: }
  899. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  900. // CHECK:STDOUT: }
  901. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.decl.loc152_30.2: %FMissingReturnType.as.J.impl.F.type.123d7a.2 = fn_decl @FMissingReturnType.as.J.impl.F.loc152_30.2 [concrete = constants.%FMissingReturnType.as.J.impl.F.c7d02d.2] {
  902. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  903. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  904. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  905. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  906. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  907. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  908. // CHECK:STDOUT: } {
  909. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  910. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  911. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  912. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  913. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  914. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  915. // CHECK:STDOUT: }
  916. // CHECK:STDOUT:
  917. // CHECK:STDOUT: !members:
  918. // CHECK:STDOUT: .F = %FMissingReturnType.as.J.impl.F.decl.loc152_30.1
  919. // CHECK:STDOUT: witness = @FMissingReturnType.%J.impl_witness
  920. // CHECK:STDOUT: }
  921. // CHECK:STDOUT:
  922. // CHECK:STDOUT: impl @FMissingReturnType.as.Destroy.impl: @FMissingReturnType.%Self.ref as constants.%Destroy.type {
  923. // CHECK:STDOUT: %FMissingReturnType.as.Destroy.impl.Op.decl: %FMissingReturnType.as.Destroy.impl.Op.type = fn_decl @FMissingReturnType.as.Destroy.impl.Op [concrete = constants.%FMissingReturnType.as.Destroy.impl.Op] {
  924. // CHECK:STDOUT: %self.patt: %pattern_type.585 = binding_pattern self [concrete]
  925. // CHECK:STDOUT: %self.param_patt: %pattern_type.585 = value_param_pattern %self.patt, call_param0 [concrete]
  926. // CHECK:STDOUT: %.loc134: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  927. // CHECK:STDOUT: } {
  928. // CHECK:STDOUT: %self.param: %ptr.41e = value_param call_param0
  929. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
  930. // CHECK:STDOUT: %self: %ptr.41e = bind_name self, %self.param
  931. // CHECK:STDOUT: }
  932. // CHECK:STDOUT:
  933. // CHECK:STDOUT: !members:
  934. // CHECK:STDOUT: .Op = %FMissingReturnType.as.Destroy.impl.Op.decl
  935. // CHECK:STDOUT: witness = @FMissingReturnType.%Destroy.impl_witness
  936. // CHECK:STDOUT: }
  937. // CHECK:STDOUT:
  938. // CHECK:STDOUT: impl @FDifferentParamType.as.J.impl: %Self.ref as %J.ref {
  939. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.decl.loc171_38.1: %FDifferentParamType.as.J.impl.F.type.6b537d.1 = fn_decl @FDifferentParamType.as.J.impl.F.loc171_38.1 [concrete = constants.%FDifferentParamType.as.J.impl.F.04313a.1] {
  940. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  941. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  942. // CHECK:STDOUT: %b.patt: %pattern_type.b90 = binding_pattern b [concrete]
  943. // CHECK:STDOUT: %b.param_patt: %pattern_type.b90 = value_param_pattern %b.patt, call_param1 [concrete]
  944. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  945. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  946. // CHECK:STDOUT: } {
  947. // CHECK:STDOUT: %Bool.call.loc171_34: init type = call constants.%Bool() [concrete = bool]
  948. // CHECK:STDOUT: %.loc171_34.1: type = value_of_initializer %Bool.call.loc171_34 [concrete = bool]
  949. // CHECK:STDOUT: %.loc171_34.2: type = converted %Bool.call.loc171_34, %.loc171_34.1 [concrete = bool]
  950. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  951. // CHECK:STDOUT: %.loc171_16.1: type = splice_block %.loc171_16.3 [concrete = bool] {
  952. // CHECK:STDOUT: %Bool.call.loc171_16: init type = call constants.%Bool() [concrete = bool]
  953. // CHECK:STDOUT: %.loc171_16.2: type = value_of_initializer %Bool.call.loc171_16 [concrete = bool]
  954. // CHECK:STDOUT: %.loc171_16.3: type = converted %Bool.call.loc171_16, %.loc171_16.2 [concrete = bool]
  955. // CHECK:STDOUT: }
  956. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  957. // CHECK:STDOUT: %b.param: %FDifferentParamType = value_param call_param1
  958. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  959. // CHECK:STDOUT: %b: %FDifferentParamType = bind_name b, %b.param
  960. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  961. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  962. // CHECK:STDOUT: }
  963. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.decl.loc171_38.2: %FDifferentParamType.as.J.impl.F.type.6b537d.2 = fn_decl @FDifferentParamType.as.J.impl.F.loc171_38.2 [concrete = constants.%FDifferentParamType.as.J.impl.F.04313a.2] {
  964. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  965. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  966. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  967. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  968. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  969. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  970. // CHECK:STDOUT: } {
  971. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  972. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  973. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  974. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  975. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  976. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  977. // CHECK:STDOUT: }
  978. // CHECK:STDOUT:
  979. // CHECK:STDOUT: !members:
  980. // CHECK:STDOUT: .F = %FDifferentParamType.as.J.impl.F.decl.loc171_38.1
  981. // CHECK:STDOUT: witness = @FDifferentParamType.%J.impl_witness
  982. // CHECK:STDOUT: }
  983. // CHECK:STDOUT:
  984. // CHECK:STDOUT: impl @FDifferentParamType.as.Destroy.impl: @FDifferentParamType.%Self.ref as constants.%Destroy.type {
  985. // CHECK:STDOUT: %FDifferentParamType.as.Destroy.impl.Op.decl: %FDifferentParamType.as.Destroy.impl.Op.type = fn_decl @FDifferentParamType.as.Destroy.impl.Op [concrete = constants.%FDifferentParamType.as.Destroy.impl.Op] {
  986. // CHECK:STDOUT: %self.patt: %pattern_type.e0c = binding_pattern self [concrete]
  987. // CHECK:STDOUT: %self.param_patt: %pattern_type.e0c = value_param_pattern %self.patt, call_param0 [concrete]
  988. // CHECK:STDOUT: %.loc156: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  989. // CHECK:STDOUT: } {
  990. // CHECK:STDOUT: %self.param: %ptr.f1f = value_param call_param0
  991. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  992. // CHECK:STDOUT: %self: %ptr.f1f = bind_name self, %self.param
  993. // CHECK:STDOUT: }
  994. // CHECK:STDOUT:
  995. // CHECK:STDOUT: !members:
  996. // CHECK:STDOUT: .Op = %FDifferentParamType.as.Destroy.impl.Op.decl
  997. // CHECK:STDOUT: witness = @FDifferentParamType.%Destroy.impl_witness
  998. // CHECK:STDOUT: }
  999. // CHECK:STDOUT:
  1000. // CHECK:STDOUT: impl @FDifferentImplicitParamType.as.J.impl: %Self.ref as %J.ref {
  1001. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.1 = fn_decl @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.886f70.1] {
  1002. // CHECK:STDOUT: %self.patt: %pattern_type.9cc = binding_pattern self [concrete]
  1003. // CHECK:STDOUT: %self.param_patt: %pattern_type.9cc = value_param_pattern %self.patt, call_param0 [concrete]
  1004. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  1005. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  1006. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  1007. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  1008. // CHECK:STDOUT: } {
  1009. // CHECK:STDOUT: %Bool.call.loc184_34: init type = call constants.%Bool() [concrete = bool]
  1010. // CHECK:STDOUT: %.loc184_34.1: type = value_of_initializer %Bool.call.loc184_34 [concrete = bool]
  1011. // CHECK:STDOUT: %.loc184_34.2: type = converted %Bool.call.loc184_34, %.loc184_34.1 [concrete = bool]
  1012. // CHECK:STDOUT: %self.param: %FDifferentImplicitParamType = value_param call_param0
  1013. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1014. // CHECK:STDOUT: %self: %FDifferentImplicitParamType = bind_name self, %self.param
  1015. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  1016. // CHECK:STDOUT: %.loc184_25.1: type = splice_block %.loc184_25.3 [concrete = bool] {
  1017. // CHECK:STDOUT: %Bool.call.loc184_25: init type = call constants.%Bool() [concrete = bool]
  1018. // CHECK:STDOUT: %.loc184_25.2: type = value_of_initializer %Bool.call.loc184_25 [concrete = bool]
  1019. // CHECK:STDOUT: %.loc184_25.3: type = converted %Bool.call.loc184_25, %.loc184_25.2 [concrete = bool]
  1020. // CHECK:STDOUT: }
  1021. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  1022. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  1023. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  1024. // CHECK:STDOUT: }
  1025. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.2: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.2 = fn_decl @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.886f70.2] {
  1026. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  1027. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  1028. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  1029. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  1030. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  1031. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  1032. // CHECK:STDOUT: } {
  1033. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  1034. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  1035. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  1036. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  1037. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  1038. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  1039. // CHECK:STDOUT: }
  1040. // CHECK:STDOUT:
  1041. // CHECK:STDOUT: !members:
  1042. // CHECK:STDOUT: .F = %FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1
  1043. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%J.impl_witness
  1044. // CHECK:STDOUT: }
  1045. // CHECK:STDOUT:
  1046. // CHECK:STDOUT: impl @FDifferentImplicitParamType.as.Destroy.impl: @FDifferentImplicitParamType.%Self.ref as constants.%Destroy.type {
  1047. // CHECK:STDOUT: %FDifferentImplicitParamType.as.Destroy.impl.Op.decl: %FDifferentImplicitParamType.as.Destroy.impl.Op.type = fn_decl @FDifferentImplicitParamType.as.Destroy.impl.Op [concrete = constants.%FDifferentImplicitParamType.as.Destroy.impl.Op] {
  1048. // CHECK:STDOUT: %self.patt: %pattern_type.986 = binding_pattern self [concrete]
  1049. // CHECK:STDOUT: %self.param_patt: %pattern_type.986 = value_param_pattern %self.patt, call_param0 [concrete]
  1050. // CHECK:STDOUT: %.loc175: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  1051. // CHECK:STDOUT: } {
  1052. // CHECK:STDOUT: %self.param: %ptr.dc5 = value_param call_param0
  1053. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1054. // CHECK:STDOUT: %self: %ptr.dc5 = bind_name self, %self.param
  1055. // CHECK:STDOUT: }
  1056. // CHECK:STDOUT:
  1057. // CHECK:STDOUT: !members:
  1058. // CHECK:STDOUT: .Op = %FDifferentImplicitParamType.as.Destroy.impl.Op.decl
  1059. // CHECK:STDOUT: witness = @FDifferentImplicitParamType.%Destroy.impl_witness
  1060. // CHECK:STDOUT: }
  1061. // CHECK:STDOUT:
  1062. // CHECK:STDOUT: impl @FDifferentReturnType.as.J.impl: %Self.ref as %J.ref {
  1063. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1: %FDifferentReturnType.as.J.impl.F.type.d3b58f.1 = fn_decl @FDifferentReturnType.as.J.impl.F.loc200_38.1 [concrete = constants.%FDifferentReturnType.as.J.impl.F.be86c9.1] {
  1064. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  1065. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  1066. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  1067. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  1068. // CHECK:STDOUT: %return.patt: %pattern_type.8ee = return_slot_pattern [concrete]
  1069. // CHECK:STDOUT: %return.param_patt: %pattern_type.8ee = out_param_pattern %return.patt, call_param2 [concrete]
  1070. // CHECK:STDOUT: } {
  1071. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1072. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  1073. // CHECK:STDOUT: %.loc200_16.1: type = splice_block %.loc200_16.3 [concrete = bool] {
  1074. // CHECK:STDOUT: %Bool.call.loc200_16: init type = call constants.%Bool() [concrete = bool]
  1075. // CHECK:STDOUT: %.loc200_16.2: type = value_of_initializer %Bool.call.loc200_16 [concrete = bool]
  1076. // CHECK:STDOUT: %.loc200_16.3: type = converted %Bool.call.loc200_16, %.loc200_16.2 [concrete = bool]
  1077. // CHECK:STDOUT: }
  1078. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  1079. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  1080. // CHECK:STDOUT: %.loc200_25.1: type = splice_block %.loc200_25.3 [concrete = bool] {
  1081. // CHECK:STDOUT: %Bool.call.loc200_25: init type = call constants.%Bool() [concrete = bool]
  1082. // CHECK:STDOUT: %.loc200_25.2: type = value_of_initializer %Bool.call.loc200_25 [concrete = bool]
  1083. // CHECK:STDOUT: %.loc200_25.3: type = converted %Bool.call.loc200_25, %.loc200_25.2 [concrete = bool]
  1084. // CHECK:STDOUT: }
  1085. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  1086. // CHECK:STDOUT: %return.param: ref %FDifferentReturnType = out_param call_param2
  1087. // CHECK:STDOUT: %return: ref %FDifferentReturnType = return_slot %return.param
  1088. // CHECK:STDOUT: }
  1089. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.decl.loc200_38.2: %FDifferentReturnType.as.J.impl.F.type.d3b58f.2 = fn_decl @FDifferentReturnType.as.J.impl.F.loc200_38.2 [concrete = constants.%FDifferentReturnType.as.J.impl.F.be86c9.2] {
  1090. // CHECK:STDOUT: %self.patt: %pattern_type.831 = binding_pattern self [concrete]
  1091. // CHECK:STDOUT: %self.param_patt: %pattern_type.831 = value_param_pattern %self.patt, call_param0 [concrete]
  1092. // CHECK:STDOUT: %b.patt: %pattern_type.831 = binding_pattern b [concrete]
  1093. // CHECK:STDOUT: %b.param_patt: %pattern_type.831 = value_param_pattern %b.patt, call_param1 [concrete]
  1094. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  1095. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param2 [concrete]
  1096. // CHECK:STDOUT: } {
  1097. // CHECK:STDOUT: %self.param: bool = value_param call_param0
  1098. // CHECK:STDOUT: %self: bool = bind_name self, %self.param
  1099. // CHECK:STDOUT: %b.param: bool = value_param call_param1
  1100. // CHECK:STDOUT: %b: bool = bind_name b, %b.param
  1101. // CHECK:STDOUT: %return.param: ref bool = out_param call_param2
  1102. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  1103. // CHECK:STDOUT: }
  1104. // CHECK:STDOUT:
  1105. // CHECK:STDOUT: !members:
  1106. // CHECK:STDOUT: .F = %FDifferentReturnType.as.J.impl.F.decl.loc200_38.1
  1107. // CHECK:STDOUT: witness = @FDifferentReturnType.%J.impl_witness
  1108. // CHECK:STDOUT: }
  1109. // CHECK:STDOUT:
  1110. // CHECK:STDOUT: impl @FDifferentReturnType.as.Destroy.impl: @FDifferentReturnType.%Self.ref as constants.%Destroy.type {
  1111. // CHECK:STDOUT: %FDifferentReturnType.as.Destroy.impl.Op.decl: %FDifferentReturnType.as.Destroy.impl.Op.type = fn_decl @FDifferentReturnType.as.Destroy.impl.Op [concrete = constants.%FDifferentReturnType.as.Destroy.impl.Op] {
  1112. // CHECK:STDOUT: %self.patt: %pattern_type.246 = binding_pattern self [concrete]
  1113. // CHECK:STDOUT: %self.param_patt: %pattern_type.246 = value_param_pattern %self.patt, call_param0 [concrete]
  1114. // CHECK:STDOUT: %.loc188: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  1115. // CHECK:STDOUT: } {
  1116. // CHECK:STDOUT: %self.param: %ptr.954 = value_param call_param0
  1117. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1118. // CHECK:STDOUT: %self: %ptr.954 = bind_name self, %self.param
  1119. // CHECK:STDOUT: }
  1120. // CHECK:STDOUT:
  1121. // CHECK:STDOUT: !members:
  1122. // CHECK:STDOUT: .Op = %FDifferentReturnType.as.Destroy.impl.Op.decl
  1123. // CHECK:STDOUT: witness = @FDifferentReturnType.%Destroy.impl_witness
  1124. // CHECK:STDOUT: }
  1125. // CHECK:STDOUT:
  1126. // CHECK:STDOUT: impl @SelfNestedBadParam.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  1127. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.1 = fn_decl @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.fa8d04.1] {
  1128. // CHECK:STDOUT: %x.patt: %pattern_type.714 = binding_pattern x [concrete]
  1129. // CHECK:STDOUT: %x.param_patt: %pattern_type.714 = value_param_pattern %x.patt, call_param0 [concrete]
  1130. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  1131. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  1132. // CHECK:STDOUT: } {
  1133. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_65: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  1134. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  1135. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref.loc223_65 [concrete = constants.%array_type.a41]
  1136. // CHECK:STDOUT: %x.param: %tuple.type.a7d = value_param call_param0
  1137. // CHECK:STDOUT: %.loc223_53.1: type = splice_block %.loc223_53.3 [concrete = constants.%tuple.type.a7d] {
  1138. // CHECK:STDOUT: %SelfNestedBadParam.ref.loc223_14: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  1139. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadParam.ref.loc223_14 [concrete = constants.%ptr.4cd]
  1140. // CHECK:STDOUT: %int_32.loc223_40: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  1141. // CHECK:STDOUT: %i32.loc223_40: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  1142. // CHECK:STDOUT: %int_32.loc223_49: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  1143. // CHECK:STDOUT: %i32.loc223_49: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  1144. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %i32, .y: %i32} [concrete = constants.%struct_type.x.y.871]
  1145. // CHECK:STDOUT: %.loc223_53.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  1146. // CHECK:STDOUT: %.loc223_53.3: type = converted %.loc223_53.2, constants.%tuple.type.a7d [concrete = constants.%tuple.type.a7d]
  1147. // CHECK:STDOUT: }
  1148. // CHECK:STDOUT: %x: %tuple.type.a7d = bind_name x, %x.param
  1149. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  1150. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  1151. // CHECK:STDOUT: }
  1152. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.2: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.2 = fn_decl @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.fa8d04.2] {
  1153. // CHECK:STDOUT: %x.patt: %pattern_type.a5c = binding_pattern x [concrete]
  1154. // CHECK:STDOUT: %x.param_patt: %pattern_type.a5c = value_param_pattern %x.patt, call_param0 [concrete]
  1155. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  1156. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  1157. // CHECK:STDOUT: } {
  1158. // CHECK:STDOUT: %x.param: %tuple.type.9c9 = value_param call_param0
  1159. // CHECK:STDOUT: %x: %tuple.type.9c9 = bind_name x, %x.param
  1160. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  1161. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  1162. // CHECK:STDOUT: }
  1163. // CHECK:STDOUT:
  1164. // CHECK:STDOUT: !members:
  1165. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1166. // CHECK:STDOUT: .F = %SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1
  1167. // CHECK:STDOUT: witness = @SelfNestedBadParam.%SelfNested.impl_witness
  1168. // CHECK:STDOUT: }
  1169. // CHECK:STDOUT:
  1170. // CHECK:STDOUT: impl @SelfNestedBadParam.as.Destroy.impl: @SelfNestedBadParam.%Self.ref as constants.%Destroy.type {
  1171. // CHECK:STDOUT: %SelfNestedBadParam.as.Destroy.impl.Op.decl: %SelfNestedBadParam.as.Destroy.impl.Op.type = fn_decl @SelfNestedBadParam.as.Destroy.impl.Op [concrete = constants.%SelfNestedBadParam.as.Destroy.impl.Op] {
  1172. // CHECK:STDOUT: %self.patt: %pattern_type.2a7 = binding_pattern self [concrete]
  1173. // CHECK:STDOUT: %self.param_patt: %pattern_type.2a7 = value_param_pattern %self.patt, call_param0 [concrete]
  1174. // CHECK:STDOUT: %.loc214: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  1175. // CHECK:STDOUT: } {
  1176. // CHECK:STDOUT: %self.param: %ptr.4cd = value_param call_param0
  1177. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
  1178. // CHECK:STDOUT: %self: %ptr.4cd = bind_name self, %self.param
  1179. // CHECK:STDOUT: }
  1180. // CHECK:STDOUT:
  1181. // CHECK:STDOUT: !members:
  1182. // CHECK:STDOUT: .Op = %SelfNestedBadParam.as.Destroy.impl.Op.decl
  1183. // CHECK:STDOUT: witness = @SelfNestedBadParam.%Destroy.impl_witness
  1184. // CHECK:STDOUT: }
  1185. // CHECK:STDOUT:
  1186. // CHECK:STDOUT: impl @SelfNestedBadReturnType.as.SelfNested.impl: %Self.ref as %SelfNested.ref {
  1187. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.1 = fn_decl @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.0bc78a.1] {
  1188. // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
  1189. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  1190. // CHECK:STDOUT: %return.patt: %pattern_type.1f1 = return_slot_pattern [concrete]
  1191. // CHECK:STDOUT: %return.param_patt: %pattern_type.1f1 = out_param_pattern %return.patt, call_param1 [concrete]
  1192. // CHECK:STDOUT: } {
  1193. // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [concrete = constants.%SelfNestedBadParam]
  1194. // CHECK:STDOUT: %int_4: Core.IntLiteral = int_value 4 [concrete = constants.%int_4]
  1195. // CHECK:STDOUT: %array_type: type = array_type %int_4, %SelfNestedBadParam.ref [concrete = constants.%array_type.a41]
  1196. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  1197. // CHECK:STDOUT: %.loc239_78.1: type = splice_block %.loc239_78.3 [concrete = constants.%tuple.type.eb9] {
  1198. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_14: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  1199. // CHECK:STDOUT: %ptr: type = ptr_type %SelfNestedBadReturnType.ref.loc239_14 [concrete = constants.%ptr.612]
  1200. // CHECK:STDOUT: %SelfNestedBadReturnType.ref.loc239_45: type = name_ref SelfNestedBadReturnType, file.%SelfNestedBadReturnType.decl [concrete = constants.%SelfNestedBadReturnType]
  1201. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  1202. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  1203. // CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %SelfNestedBadReturnType, .y: %i32} [concrete = constants.%struct_type.x.y.ac5]
  1204. // CHECK:STDOUT: %.loc239_78.2: %tuple.type.24b = tuple_literal (%ptr, %struct_type.x.y)
  1205. // CHECK:STDOUT: %.loc239_78.3: type = converted %.loc239_78.2, constants.%tuple.type.eb9 [concrete = constants.%tuple.type.eb9]
  1206. // CHECK:STDOUT: }
  1207. // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
  1208. // CHECK:STDOUT: %return.param: ref %array_type.a41 = out_param call_param1
  1209. // CHECK:STDOUT: %return: ref %array_type.a41 = return_slot %return.param
  1210. // CHECK:STDOUT: }
  1211. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.2: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.2 = fn_decl @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.0bc78a.2] {
  1212. // CHECK:STDOUT: %x.patt: %pattern_type.23f = binding_pattern x [concrete]
  1213. // CHECK:STDOUT: %x.param_patt: %pattern_type.23f = value_param_pattern %x.patt, call_param0 [concrete]
  1214. // CHECK:STDOUT: %return.patt: %pattern_type.f56 = return_slot_pattern [concrete]
  1215. // CHECK:STDOUT: %return.param_patt: %pattern_type.f56 = out_param_pattern %return.patt, call_param1 [concrete]
  1216. // CHECK:STDOUT: } {
  1217. // CHECK:STDOUT: %x.param: %tuple.type.eb9 = value_param call_param0
  1218. // CHECK:STDOUT: %x: %tuple.type.eb9 = bind_name x, %x.param
  1219. // CHECK:STDOUT: %return.param: ref %array_type.126 = out_param call_param1
  1220. // CHECK:STDOUT: %return: ref %array_type.126 = return_slot %return.param
  1221. // CHECK:STDOUT: }
  1222. // CHECK:STDOUT:
  1223. // CHECK:STDOUT: !members:
  1224. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  1225. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1226. // CHECK:STDOUT: .F = %SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1
  1227. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%SelfNested.impl_witness
  1228. // CHECK:STDOUT: }
  1229. // CHECK:STDOUT:
  1230. // CHECK:STDOUT: impl @SelfNestedBadReturnType.as.Destroy.impl: @SelfNestedBadReturnType.%Self.ref as constants.%Destroy.type {
  1231. // CHECK:STDOUT: %SelfNestedBadReturnType.as.Destroy.impl.Op.decl: %SelfNestedBadReturnType.as.Destroy.impl.Op.type = fn_decl @SelfNestedBadReturnType.as.Destroy.impl.Op [concrete = constants.%SelfNestedBadReturnType.as.Destroy.impl.Op] {
  1232. // CHECK:STDOUT: %self.patt: %pattern_type.4de = binding_pattern self [concrete]
  1233. // CHECK:STDOUT: %self.param_patt: %pattern_type.4de = value_param_pattern %self.patt, call_param0 [concrete]
  1234. // CHECK:STDOUT: %.loc227: %pattern_type.f6d = addr_pattern %self.param_patt [concrete]
  1235. // CHECK:STDOUT: } {
  1236. // CHECK:STDOUT: %self.param: %ptr.612 = value_param call_param0
  1237. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
  1238. // CHECK:STDOUT: %self: %ptr.612 = bind_name self, %self.param
  1239. // CHECK:STDOUT: }
  1240. // CHECK:STDOUT:
  1241. // CHECK:STDOUT: !members:
  1242. // CHECK:STDOUT: .Op = %SelfNestedBadReturnType.as.Destroy.impl.Op.decl
  1243. // CHECK:STDOUT: witness = @SelfNestedBadReturnType.%Destroy.impl_witness
  1244. // CHECK:STDOUT: }
  1245. // CHECK:STDOUT:
  1246. // CHECK:STDOUT: class @NoF {
  1247. // CHECK:STDOUT: impl_decl @NoF.as.I.impl [concrete] {} {
  1248. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
  1249. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1250. // CHECK:STDOUT: }
  1251. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @NoF.as.I.impl [concrete]
  1252. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.901]
  1253. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%NoF [concrete = constants.%NoF]
  1254. // CHECK:STDOUT: impl_decl @NoF.as.Destroy.impl [concrete] {} {}
  1255. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@NoF.as.Destroy.impl.%NoF.as.Destroy.impl.Op.decl), @NoF.as.Destroy.impl [concrete]
  1256. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.9b3]
  1257. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1258. // CHECK:STDOUT: complete_type_witness = %complete_type
  1259. // CHECK:STDOUT:
  1260. // CHECK:STDOUT: !members:
  1261. // CHECK:STDOUT: .Self = constants.%NoF
  1262. // CHECK:STDOUT: .I = <poisoned>
  1263. // CHECK:STDOUT: }
  1264. // CHECK:STDOUT:
  1265. // CHECK:STDOUT: class @FNotFunction {
  1266. // CHECK:STDOUT: impl_decl @FNotFunction.as.I.impl [concrete] {} {
  1267. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
  1268. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1269. // CHECK:STDOUT: }
  1270. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FNotFunction.as.I.impl [concrete]
  1271. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.44e]
  1272. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FNotFunction [concrete = constants.%FNotFunction]
  1273. // CHECK:STDOUT: impl_decl @FNotFunction.as.Destroy.impl [concrete] {} {}
  1274. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FNotFunction.as.Destroy.impl.%FNotFunction.as.Destroy.impl.Op.decl), @FNotFunction.as.Destroy.impl [concrete]
  1275. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.f9b]
  1276. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1277. // CHECK:STDOUT: complete_type_witness = %complete_type
  1278. // CHECK:STDOUT:
  1279. // CHECK:STDOUT: !members:
  1280. // CHECK:STDOUT: .Self = constants.%FNotFunction
  1281. // CHECK:STDOUT: .I = <poisoned>
  1282. // CHECK:STDOUT: }
  1283. // CHECK:STDOUT:
  1284. // CHECK:STDOUT: class @F;
  1285. // CHECK:STDOUT:
  1286. // CHECK:STDOUT: class @FAlias {
  1287. // CHECK:STDOUT: impl_decl @FAlias.as.I.impl [concrete] {} {
  1288. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
  1289. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1290. // CHECK:STDOUT: }
  1291. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FAlias.as.I.impl [concrete]
  1292. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.c80]
  1293. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FAlias [concrete = constants.%FAlias]
  1294. // CHECK:STDOUT: impl_decl @FAlias.as.Destroy.impl [concrete] {} {}
  1295. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FAlias.as.Destroy.impl.%FAlias.as.Destroy.impl.Op.decl), @FAlias.as.Destroy.impl [concrete]
  1296. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.740]
  1297. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1298. // CHECK:STDOUT: complete_type_witness = %complete_type
  1299. // CHECK:STDOUT:
  1300. // CHECK:STDOUT: !members:
  1301. // CHECK:STDOUT: .Self = constants.%FAlias
  1302. // CHECK:STDOUT: .I = <poisoned>
  1303. // CHECK:STDOUT: .PossiblyF = <poisoned>
  1304. // CHECK:STDOUT: }
  1305. // CHECK:STDOUT:
  1306. // CHECK:STDOUT: class @FExtraParam {
  1307. // CHECK:STDOUT: impl_decl @FExtraParam.as.I.impl [concrete] {} {
  1308. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
  1309. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1310. // CHECK:STDOUT: }
  1311. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (@FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.2), @FExtraParam.as.I.impl [concrete]
  1312. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.1f3]
  1313. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraParam [concrete = constants.%FExtraParam]
  1314. // CHECK:STDOUT: impl_decl @FExtraParam.as.Destroy.impl [concrete] {} {}
  1315. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FExtraParam.as.Destroy.impl.%FExtraParam.as.Destroy.impl.Op.decl), @FExtraParam.as.Destroy.impl [concrete]
  1316. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.44a]
  1317. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1318. // CHECK:STDOUT: complete_type_witness = %complete_type
  1319. // CHECK:STDOUT:
  1320. // CHECK:STDOUT: !members:
  1321. // CHECK:STDOUT: .Self = constants.%FExtraParam
  1322. // CHECK:STDOUT: .I = <poisoned>
  1323. // CHECK:STDOUT: }
  1324. // CHECK:STDOUT:
  1325. // CHECK:STDOUT: class @FExtraImplicitParam {
  1326. // CHECK:STDOUT: impl_decl @FExtraImplicitParam.as.I.impl [concrete] {} {
  1327. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  1328. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1329. // CHECK:STDOUT: }
  1330. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (@FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.2), @FExtraImplicitParam.as.I.impl [concrete]
  1331. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.a7b]
  1332. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraImplicitParam [concrete = constants.%FExtraImplicitParam]
  1333. // CHECK:STDOUT: impl_decl @FExtraImplicitParam.as.Destroy.impl [concrete] {} {}
  1334. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FExtraImplicitParam.as.Destroy.impl.%FExtraImplicitParam.as.Destroy.impl.Op.decl), @FExtraImplicitParam.as.Destroy.impl [concrete]
  1335. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.a05]
  1336. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1337. // CHECK:STDOUT: complete_type_witness = %complete_type
  1338. // CHECK:STDOUT:
  1339. // CHECK:STDOUT: !members:
  1340. // CHECK:STDOUT: .Self = constants.%FExtraImplicitParam
  1341. // CHECK:STDOUT: .I = <poisoned>
  1342. // CHECK:STDOUT: }
  1343. // CHECK:STDOUT:
  1344. // CHECK:STDOUT: class @FExtraReturnType {
  1345. // CHECK:STDOUT: impl_decl @FExtraReturnType.as.I.impl [concrete] {} {
  1346. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
  1347. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  1348. // CHECK:STDOUT: }
  1349. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (<error>), @FExtraReturnType.as.I.impl [concrete]
  1350. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness.59a]
  1351. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FExtraReturnType [concrete = constants.%FExtraReturnType]
  1352. // CHECK:STDOUT: impl_decl @FExtraReturnType.as.Destroy.impl [concrete] {} {}
  1353. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FExtraReturnType.as.Destroy.impl.%FExtraReturnType.as.Destroy.impl.Op.decl), @FExtraReturnType.as.Destroy.impl [concrete]
  1354. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.3ea]
  1355. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1356. // CHECK:STDOUT: complete_type_witness = %complete_type
  1357. // CHECK:STDOUT:
  1358. // CHECK:STDOUT: !members:
  1359. // CHECK:STDOUT: .Self = constants.%FExtraReturnType
  1360. // CHECK:STDOUT: .I = <poisoned>
  1361. // CHECK:STDOUT: }
  1362. // CHECK:STDOUT:
  1363. // CHECK:STDOUT: class @FMissingParam {
  1364. // CHECK:STDOUT: impl_decl @FMissingParam.as.J.impl [concrete] {} {
  1365. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
  1366. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1367. // CHECK:STDOUT: }
  1368. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.2), @FMissingParam.as.J.impl [concrete]
  1369. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.4e9]
  1370. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingParam [concrete = constants.%FMissingParam]
  1371. // CHECK:STDOUT: impl_decl @FMissingParam.as.Destroy.impl [concrete] {} {}
  1372. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FMissingParam.as.Destroy.impl.%FMissingParam.as.Destroy.impl.Op.decl), @FMissingParam.as.Destroy.impl [concrete]
  1373. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.672]
  1374. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1375. // CHECK:STDOUT: complete_type_witness = %complete_type
  1376. // CHECK:STDOUT:
  1377. // CHECK:STDOUT: !members:
  1378. // CHECK:STDOUT: .Self = constants.%FMissingParam
  1379. // CHECK:STDOUT: .J = <poisoned>
  1380. // CHECK:STDOUT: }
  1381. // CHECK:STDOUT:
  1382. // CHECK:STDOUT: class @FMissingImplicitParam {
  1383. // CHECK:STDOUT: impl_decl @FMissingImplicitParam.as.J.impl [concrete] {} {
  1384. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
  1385. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1386. // CHECK:STDOUT: }
  1387. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.2), @FMissingImplicitParam.as.J.impl [concrete]
  1388. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.841]
  1389. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingImplicitParam [concrete = constants.%FMissingImplicitParam]
  1390. // CHECK:STDOUT: impl_decl @FMissingImplicitParam.as.Destroy.impl [concrete] {} {}
  1391. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FMissingImplicitParam.as.Destroy.impl.%FMissingImplicitParam.as.Destroy.impl.Op.decl), @FMissingImplicitParam.as.Destroy.impl [concrete]
  1392. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.ae6]
  1393. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1394. // CHECK:STDOUT: complete_type_witness = %complete_type
  1395. // CHECK:STDOUT:
  1396. // CHECK:STDOUT: !members:
  1397. // CHECK:STDOUT: .Self = constants.%FMissingImplicitParam
  1398. // CHECK:STDOUT: .J = <poisoned>
  1399. // CHECK:STDOUT: }
  1400. // CHECK:STDOUT:
  1401. // CHECK:STDOUT: class @FMissingReturnType {
  1402. // CHECK:STDOUT: impl_decl @FMissingReturnType.as.J.impl [concrete] {} {
  1403. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
  1404. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1405. // CHECK:STDOUT: }
  1406. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.2), @FMissingReturnType.as.J.impl [concrete]
  1407. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.e75]
  1408. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FMissingReturnType [concrete = constants.%FMissingReturnType]
  1409. // CHECK:STDOUT: impl_decl @FMissingReturnType.as.Destroy.impl [concrete] {} {}
  1410. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FMissingReturnType.as.Destroy.impl.%FMissingReturnType.as.Destroy.impl.Op.decl), @FMissingReturnType.as.Destroy.impl [concrete]
  1411. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.8d8]
  1412. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1413. // CHECK:STDOUT: complete_type_witness = %complete_type
  1414. // CHECK:STDOUT:
  1415. // CHECK:STDOUT: !members:
  1416. // CHECK:STDOUT: .Self = constants.%FMissingReturnType
  1417. // CHECK:STDOUT: .J = <poisoned>
  1418. // CHECK:STDOUT: }
  1419. // CHECK:STDOUT:
  1420. // CHECK:STDOUT: class @FDifferentParamType {
  1421. // CHECK:STDOUT: impl_decl @FDifferentParamType.as.J.impl [concrete] {} {
  1422. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  1423. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1424. // CHECK:STDOUT: }
  1425. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.2), @FDifferentParamType.as.J.impl [concrete]
  1426. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.cbe]
  1427. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentParamType [concrete = constants.%FDifferentParamType]
  1428. // CHECK:STDOUT: impl_decl @FDifferentParamType.as.Destroy.impl [concrete] {} {}
  1429. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FDifferentParamType.as.Destroy.impl.%FDifferentParamType.as.Destroy.impl.Op.decl), @FDifferentParamType.as.Destroy.impl [concrete]
  1430. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.443]
  1431. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1432. // CHECK:STDOUT: complete_type_witness = %complete_type
  1433. // CHECK:STDOUT:
  1434. // CHECK:STDOUT: !members:
  1435. // CHECK:STDOUT: .Self = constants.%FDifferentParamType
  1436. // CHECK:STDOUT: .J = <poisoned>
  1437. // CHECK:STDOUT: }
  1438. // CHECK:STDOUT:
  1439. // CHECK:STDOUT: class @FDifferentImplicitParamType {
  1440. // CHECK:STDOUT: impl_decl @FDifferentImplicitParamType.as.J.impl [concrete] {} {
  1441. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1442. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1443. // CHECK:STDOUT: }
  1444. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.2), @FDifferentImplicitParamType.as.J.impl [concrete]
  1445. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.af2]
  1446. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentImplicitParamType [concrete = constants.%FDifferentImplicitParamType]
  1447. // CHECK:STDOUT: impl_decl @FDifferentImplicitParamType.as.Destroy.impl [concrete] {} {}
  1448. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FDifferentImplicitParamType.as.Destroy.impl.%FDifferentImplicitParamType.as.Destroy.impl.Op.decl), @FDifferentImplicitParamType.as.Destroy.impl [concrete]
  1449. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.c2a]
  1450. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1451. // CHECK:STDOUT: complete_type_witness = %complete_type
  1452. // CHECK:STDOUT:
  1453. // CHECK:STDOUT: !members:
  1454. // CHECK:STDOUT: .Self = constants.%FDifferentImplicitParamType
  1455. // CHECK:STDOUT: .J = <poisoned>
  1456. // CHECK:STDOUT: }
  1457. // CHECK:STDOUT:
  1458. // CHECK:STDOUT: class @FDifferentReturnType {
  1459. // CHECK:STDOUT: impl_decl @FDifferentReturnType.as.J.impl [concrete] {} {
  1460. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1461. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  1462. // CHECK:STDOUT: }
  1463. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.2), @FDifferentReturnType.as.J.impl [concrete]
  1464. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness.bc1]
  1465. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%FDifferentReturnType [concrete = constants.%FDifferentReturnType]
  1466. // CHECK:STDOUT: impl_decl @FDifferentReturnType.as.Destroy.impl [concrete] {} {}
  1467. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@FDifferentReturnType.as.Destroy.impl.%FDifferentReturnType.as.Destroy.impl.Op.decl), @FDifferentReturnType.as.Destroy.impl [concrete]
  1468. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.6d2]
  1469. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1470. // CHECK:STDOUT: complete_type_witness = %complete_type
  1471. // CHECK:STDOUT:
  1472. // CHECK:STDOUT: !members:
  1473. // CHECK:STDOUT: .Self = constants.%FDifferentReturnType
  1474. // CHECK:STDOUT: .J = <poisoned>
  1475. // CHECK:STDOUT: }
  1476. // CHECK:STDOUT:
  1477. // CHECK:STDOUT: class @SelfNestedBadParam {
  1478. // CHECK:STDOUT: impl_decl @SelfNestedBadParam.as.SelfNested.impl [concrete] {} {
  1479. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
  1480. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1481. // CHECK:STDOUT: }
  1482. // CHECK:STDOUT: %SelfNested.impl_witness_table = impl_witness_table (@SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.2), @SelfNestedBadParam.as.SelfNested.impl [concrete]
  1483. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.e31]
  1484. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadParam [concrete = constants.%SelfNestedBadParam]
  1485. // CHECK:STDOUT: impl_decl @SelfNestedBadParam.as.Destroy.impl [concrete] {} {}
  1486. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@SelfNestedBadParam.as.Destroy.impl.%SelfNestedBadParam.as.Destroy.impl.Op.decl), @SelfNestedBadParam.as.Destroy.impl [concrete]
  1487. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.908]
  1488. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1489. // CHECK:STDOUT: complete_type_witness = %complete_type
  1490. // CHECK:STDOUT:
  1491. // CHECK:STDOUT: !members:
  1492. // CHECK:STDOUT: .Self = constants.%SelfNestedBadParam
  1493. // CHECK:STDOUT: .SelfNested = <poisoned>
  1494. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1495. // CHECK:STDOUT: }
  1496. // CHECK:STDOUT:
  1497. // CHECK:STDOUT: class @SelfNestedBadReturnType {
  1498. // CHECK:STDOUT: impl_decl @SelfNestedBadReturnType.as.SelfNested.impl [concrete] {} {
  1499. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
  1500. // CHECK:STDOUT: %SelfNested.ref: type = name_ref SelfNested, file.%SelfNested.decl [concrete = constants.%SelfNested.type]
  1501. // CHECK:STDOUT: }
  1502. // CHECK:STDOUT: %SelfNested.impl_witness_table = impl_witness_table (@SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.2), @SelfNestedBadReturnType.as.SelfNested.impl [concrete]
  1503. // CHECK:STDOUT: %SelfNested.impl_witness: <witness> = impl_witness %SelfNested.impl_witness_table [concrete = constants.%SelfNested.impl_witness.d5e]
  1504. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%SelfNestedBadReturnType [concrete = constants.%SelfNestedBadReturnType]
  1505. // CHECK:STDOUT: impl_decl @SelfNestedBadReturnType.as.Destroy.impl [concrete] {} {}
  1506. // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@SelfNestedBadReturnType.as.Destroy.impl.%SelfNestedBadReturnType.as.Destroy.impl.Op.decl), @SelfNestedBadReturnType.as.Destroy.impl [concrete]
  1507. // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness.9f5]
  1508. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1509. // CHECK:STDOUT: complete_type_witness = %complete_type
  1510. // CHECK:STDOUT:
  1511. // CHECK:STDOUT: !members:
  1512. // CHECK:STDOUT: .Self = constants.%SelfNestedBadReturnType
  1513. // CHECK:STDOUT: .SelfNested = <poisoned>
  1514. // CHECK:STDOUT: .SelfNestedBadReturnType = <poisoned>
  1515. // CHECK:STDOUT: .SelfNestedBadParam = <poisoned>
  1516. // CHECK:STDOUT: }
  1517. // CHECK:STDOUT:
  1518. // CHECK:STDOUT: generic fn @I.F(@I.%Self: %I.type) {
  1519. // CHECK:STDOUT: fn();
  1520. // CHECK:STDOUT: }
  1521. // CHECK:STDOUT:
  1522. // CHECK:STDOUT: fn @NoF.as.Destroy.impl.Op(%self.param: %ptr.0f9) = "no_op";
  1523. // CHECK:STDOUT:
  1524. // CHECK:STDOUT: fn @FNotFunction.as.Destroy.impl.Op(%self.param: %ptr.2b2) = "no_op";
  1525. // CHECK:STDOUT:
  1526. // CHECK:STDOUT: fn @PossiblyF();
  1527. // CHECK:STDOUT:
  1528. // CHECK:STDOUT: fn @FAlias.as.Destroy.impl.Op(%self.param: %ptr.4bf) = "no_op";
  1529. // CHECK:STDOUT:
  1530. // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.1(%b.param: bool);
  1531. // CHECK:STDOUT:
  1532. // CHECK:STDOUT: fn @FExtraParam.as.I.impl.F.loc69_18.2() [thunk @FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.1] {
  1533. // CHECK:STDOUT: !entry:
  1534. // CHECK:STDOUT: %F.ref: %FExtraParam.as.I.impl.F.type.44ef8c.1 = name_ref F, @FExtraParam.as.I.impl.%FExtraParam.as.I.impl.F.decl.loc69_18.1 [concrete = constants.%FExtraParam.as.I.impl.F.424e9e.1]
  1535. // CHECK:STDOUT: return
  1536. // CHECK:STDOUT: }
  1537. // CHECK:STDOUT:
  1538. // CHECK:STDOUT: fn @FExtraParam.as.Destroy.impl.Op(%self.param: %ptr.0f2) = "no_op";
  1539. // CHECK:STDOUT:
  1540. // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.1(%self.param: %FExtraImplicitParam);
  1541. // CHECK:STDOUT:
  1542. // CHECK:STDOUT: fn @FExtraImplicitParam.as.I.impl.F.loc85_23.2() [thunk @FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1] {
  1543. // CHECK:STDOUT: !entry:
  1544. // CHECK:STDOUT: %F.ref: %FExtraImplicitParam.as.I.impl.F.type.e1abdd.1 = name_ref F, @FExtraImplicitParam.as.I.impl.%FExtraImplicitParam.as.I.impl.F.decl.loc85_23.1 [concrete = constants.%FExtraImplicitParam.as.I.impl.F.6ff574.1]
  1545. // CHECK:STDOUT: %FExtraImplicitParam.as.I.impl.F.call: init %empty_tuple.type = call %F.ref(<error>)
  1546. // CHECK:STDOUT: return
  1547. // CHECK:STDOUT: }
  1548. // CHECK:STDOUT:
  1549. // CHECK:STDOUT: fn @FExtraImplicitParam.as.Destroy.impl.Op(%self.param: %ptr.8c7) = "no_op";
  1550. // CHECK:STDOUT:
  1551. // CHECK:STDOUT: fn @FExtraReturnType.as.I.impl.F() -> bool;
  1552. // CHECK:STDOUT:
  1553. // CHECK:STDOUT: fn @FExtraReturnType.as.Destroy.impl.Op(%self.param: %ptr.147) = "no_op";
  1554. // CHECK:STDOUT:
  1555. // CHECK:STDOUT: generic fn @J.F(@J.%Self: %J.type) {
  1556. // CHECK:STDOUT: fn(%self.param: bool, %b.param: bool) -> bool;
  1557. // CHECK:STDOUT: }
  1558. // CHECK:STDOUT:
  1559. // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.1(%self.param: bool) -> bool;
  1560. // CHECK:STDOUT:
  1561. // CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.1] {
  1562. // CHECK:STDOUT: !entry:
  1563. // CHECK:STDOUT: %F.ref: %FMissingParam.as.J.impl.F.type.69596c.1 = name_ref F, @FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.1 [concrete = constants.%FMissingParam.as.J.impl.F.738f31.1]
  1564. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1565. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1566. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1567. // CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1568. // CHECK:STDOUT: return <error>
  1569. // CHECK:STDOUT: }
  1570. // CHECK:STDOUT:
  1571. // CHECK:STDOUT: fn @FMissingParam.as.Destroy.impl.Op(%self.param: %ptr.fc8) = "no_op";
  1572. // CHECK:STDOUT:
  1573. // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.1(%b.param: bool) -> bool;
  1574. // CHECK:STDOUT:
  1575. // CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1] {
  1576. // CHECK:STDOUT: !entry:
  1577. // CHECK:STDOUT: %F.ref: %FMissingImplicitParam.as.J.impl.F.type.d97cef.1 = name_ref F, @FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1 [concrete = constants.%FMissingImplicitParam.as.J.impl.F.01de92.1]
  1578. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1579. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1580. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1581. // CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.ref)
  1582. // CHECK:STDOUT: %.loc130_26.1: bool = value_of_initializer %FMissingImplicitParam.as.J.impl.F.call
  1583. // CHECK:STDOUT: %.loc130_26.2: bool = converted %FMissingImplicitParam.as.J.impl.F.call, %.loc130_26.1
  1584. // CHECK:STDOUT: return %.loc130_26.2
  1585. // CHECK:STDOUT: }
  1586. // CHECK:STDOUT:
  1587. // CHECK:STDOUT: fn @FMissingImplicitParam.as.Destroy.impl.Op(%self.param: %ptr.c3c) = "no_op";
  1588. // CHECK:STDOUT:
  1589. // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.1(%self.param: bool, %b.param: bool);
  1590. // CHECK:STDOUT:
  1591. // CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.2(%self.param: bool, %b.param: bool) -> bool [thunk @FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.1] {
  1592. // CHECK:STDOUT: !entry:
  1593. // CHECK:STDOUT: %F.ref: %FMissingReturnType.as.J.impl.F.type.123d7a.1 = name_ref F, @FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.1 [concrete = constants.%FMissingReturnType.as.J.impl.F.c7d02d.1]
  1594. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1595. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1596. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1597. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1598. // CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
  1599. // CHECK:STDOUT: %.loc152: bool = converted %FMissingReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1600. // CHECK:STDOUT: return <error>
  1601. // CHECK:STDOUT: }
  1602. // CHECK:STDOUT:
  1603. // CHECK:STDOUT: fn @FMissingReturnType.as.Destroy.impl.Op(%self.param: %ptr.41e) = "no_op";
  1604. // CHECK:STDOUT:
  1605. // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.1(%self.param: bool, %b.param: %FDifferentParamType) -> bool;
  1606. // CHECK:STDOUT:
  1607. // CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.1] {
  1608. // CHECK:STDOUT: !entry:
  1609. // CHECK:STDOUT: %F.ref: %FDifferentParamType.as.J.impl.F.type.6b537d.1 = name_ref F, @FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.1 [concrete = constants.%FDifferentParamType.as.J.impl.F.04313a.1]
  1610. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1611. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1612. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1613. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1614. // CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.ref, <error> [concrete = <error>]
  1615. // CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.ref, <error>)
  1616. // CHECK:STDOUT: %.loc171_38.1: bool = value_of_initializer %FDifferentParamType.as.J.impl.F.call
  1617. // CHECK:STDOUT: %.loc171_38.2: bool = converted %FDifferentParamType.as.J.impl.F.call, %.loc171_38.1
  1618. // CHECK:STDOUT: return %.loc171_38.2
  1619. // CHECK:STDOUT: }
  1620. // CHECK:STDOUT:
  1621. // CHECK:STDOUT: fn @FDifferentParamType.as.Destroy.impl.Op(%self.param: %ptr.f1f) = "no_op";
  1622. // CHECK:STDOUT:
  1623. // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.1(%self.param: %FDifferentImplicitParamType, %b.param: bool) -> bool;
  1624. // CHECK:STDOUT:
  1625. // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1] {
  1626. // CHECK:STDOUT: !entry:
  1627. // CHECK:STDOUT: %F.ref: %FDifferentImplicitParamType.as.J.impl.F.type.d6232a.1 = name_ref F, @FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1 [concrete = constants.%FDifferentImplicitParamType.as.J.impl.F.886f70.1]
  1628. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1629. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1630. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1631. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1632. // CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.ref, <error> [concrete = <error>]
  1633. // CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.ref)
  1634. // CHECK:STDOUT: %.loc184_38.1: bool = value_of_initializer %FDifferentImplicitParamType.as.J.impl.F.call
  1635. // CHECK:STDOUT: %.loc184_38.2: bool = converted %FDifferentImplicitParamType.as.J.impl.F.call, %.loc184_38.1
  1636. // CHECK:STDOUT: return %.loc184_38.2
  1637. // CHECK:STDOUT: }
  1638. // CHECK:STDOUT:
  1639. // CHECK:STDOUT: fn @FDifferentImplicitParamType.as.Destroy.impl.Op(%self.param: %ptr.dc5) = "no_op";
  1640. // CHECK:STDOUT:
  1641. // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.1(%self.param: bool, %b.param: bool) -> %return.param: %FDifferentReturnType;
  1642. // CHECK:STDOUT:
  1643. // CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.2(%self.param: bool, %b.param: bool) -> bool [thunk @FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.1] {
  1644. // CHECK:STDOUT: !entry:
  1645. // CHECK:STDOUT: %F.ref: %FDifferentReturnType.as.J.impl.F.type.d3b58f.1 = name_ref F, @FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.1 [concrete = constants.%FDifferentReturnType.as.J.impl.F.be86c9.1]
  1646. // CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
  1647. // CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
  1648. // CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
  1649. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
  1650. // CHECK:STDOUT: %.loc200_38.1: ref %FDifferentReturnType = temporary_storage
  1651. // CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.call: init %FDifferentReturnType = call %FDifferentReturnType.as.J.impl.F.bound(%self.ref, %b.ref) to %.loc200_38.1
  1652. // CHECK:STDOUT: %.loc200_38.2: bool = converted %FDifferentReturnType.as.J.impl.F.call, <error> [concrete = <error>]
  1653. // CHECK:STDOUT: %FDifferentReturnType.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc200_38.1, constants.%FDifferentReturnType.as.Destroy.impl.Op
  1654. // CHECK:STDOUT: %addr: %ptr.954 = addr_of %.loc200_38.1
  1655. // CHECK:STDOUT: %FDifferentReturnType.as.Destroy.impl.Op.call: init %empty_tuple.type = call %FDifferentReturnType.as.Destroy.impl.Op.bound(%addr)
  1656. // CHECK:STDOUT: return <error>
  1657. // CHECK:STDOUT: }
  1658. // CHECK:STDOUT:
  1659. // CHECK:STDOUT: fn @FDifferentReturnType.as.Destroy.impl.Op(%self.param: %ptr.954) = "no_op";
  1660. // CHECK:STDOUT:
  1661. // CHECK:STDOUT: generic fn @SelfNested.F(@SelfNested.%Self: %SelfNested.type) {
  1662. // CHECK:STDOUT: %Self: %SelfNested.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.2ff)]
  1663. // CHECK:STDOUT: %Self.as_type.loc211_16.1: type = facet_access_type %Self [symbolic = %Self.as_type.loc211_16.1 (constants.%Self.as_type.e1e)]
  1664. // CHECK:STDOUT: %ptr.loc211_16.1: type = ptr_type %Self.as_type.loc211_16.1 [symbolic = %ptr.loc211_16.1 (constants.%ptr.e87)]
  1665. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1: type = struct_type {.x: @SelfNested.F.%Self.as_type.loc211_16.1 (%Self.as_type.e1e), .y: %i32} [symbolic = %struct_type.x.y.loc211_37.1 (constants.%struct_type.x.y.81e)]
  1666. // CHECK:STDOUT: %tuple.type: type = tuple_type (%ptr.loc211_16.1, %struct_type.x.y.loc211_37.1) [symbolic = %tuple.type (constants.%tuple.type.229)]
  1667. // CHECK:STDOUT: %pattern_type.loc211_8: type = pattern_type %tuple.type [symbolic = %pattern_type.loc211_8 (constants.%pattern_type.ced)]
  1668. // CHECK:STDOUT: %array_type.loc211_57.1: type = array_type constants.%int_4, %Self.as_type.loc211_16.1 [symbolic = %array_type.loc211_57.1 (constants.%array_type.873)]
  1669. // CHECK:STDOUT: %pattern_type.loc211_41: type = pattern_type %array_type.loc211_57.1 [symbolic = %pattern_type.loc211_41 (constants.%pattern_type.c7e)]
  1670. // CHECK:STDOUT:
  1671. // CHECK:STDOUT: fn(%x.param: @SelfNested.F.%tuple.type (%tuple.type.229)) -> @SelfNested.F.%array_type.loc211_57.1 (%array_type.873);
  1672. // CHECK:STDOUT: }
  1673. // CHECK:STDOUT:
  1674. // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.1(%x.param: %tuple.type.a7d) -> %return.param: %array_type.a41;
  1675. // CHECK:STDOUT:
  1676. // CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2(%x.param: %tuple.type.9c9) -> %return.param: %array_type.a41 [thunk @SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1] {
  1677. // CHECK:STDOUT: !entry:
  1678. // CHECK:STDOUT: %F.ref: %SelfNestedBadParam.as.SelfNested.impl.F.type.f90165.1 = name_ref F, @SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1 [concrete = constants.%SelfNestedBadParam.as.SelfNested.impl.F.fa8d04.1]
  1679. // CHECK:STDOUT: %x.ref: %tuple.type.9c9 = name_ref x, %x.param
  1680. // CHECK:STDOUT: %return.ref: ref %array_type.a41 = name_ref <return slot>, %return.param
  1681. // CHECK:STDOUT: %.loc211_41: ref %array_type.a41 = splice_block %return {}
  1682. // CHECK:STDOUT: %tuple.elem0: %ptr.4cd = tuple_access %x.ref, element0
  1683. // CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.a89 = tuple_access %x.ref, element1
  1684. // CHECK:STDOUT: %.loc211_9.1: %SelfNestedBadParam = struct_access %tuple.elem1, element0
  1685. // CHECK:STDOUT: %.loc211_9.2: %i32 = converted %.loc211_9.1, <error> [concrete = <error>]
  1686. // CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(<error>) to %.loc211_41
  1687. // CHECK:STDOUT: %T.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc211_41, constants.%T.as.Destroy.impl.Op.d25
  1688. // CHECK:STDOUT: %T.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function constants.%T.as.Destroy.impl.Op.d25, @T.as.Destroy.impl.Op(constants.%array_type.a41) [concrete = constants.%T.as.Destroy.impl.Op.specific_fn]
  1689. // CHECK:STDOUT: %bound_method: <bound method> = bound_method %.loc211_41, %T.as.Destroy.impl.Op.specific_fn
  1690. // CHECK:STDOUT: %addr: %ptr.f40 = addr_of %.loc211_41
  1691. // CHECK:STDOUT: %T.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method(%addr)
  1692. // CHECK:STDOUT: return %SelfNestedBadParam.as.SelfNested.impl.F.call to %return
  1693. // CHECK:STDOUT: }
  1694. // CHECK:STDOUT:
  1695. // CHECK:STDOUT: fn @SelfNestedBadParam.as.Destroy.impl.Op(%self.param: %ptr.4cd) = "no_op";
  1696. // CHECK:STDOUT:
  1697. // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.1(%x.param: %tuple.type.eb9) -> %return.param: %array_type.a41;
  1698. // CHECK:STDOUT:
  1699. // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2(%x.param: %tuple.type.eb9) -> %return.param: %array_type.126 [thunk @SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1] {
  1700. // CHECK:STDOUT: !entry:
  1701. // CHECK:STDOUT: %F.ref: %SelfNestedBadReturnType.as.SelfNested.impl.F.type.0e7d1d.1 = name_ref F, @SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1 [concrete = constants.%SelfNestedBadReturnType.as.SelfNested.impl.F.0bc78a.1]
  1702. // CHECK:STDOUT: %x.ref: %tuple.type.eb9 = name_ref x, %x.param
  1703. // CHECK:STDOUT: %return.ref: ref %array_type.126 = name_ref <return slot>, %return.param
  1704. // CHECK:STDOUT: %.loc239_112.1: ref %array_type.a41 = temporary_storage
  1705. // CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.a41 = call %F.ref(%x.ref) to %.loc239_112.1
  1706. // CHECK:STDOUT: %.loc239_112.2: %array_type.126 = converted %SelfNestedBadReturnType.as.SelfNested.impl.F.call, <error> [concrete = <error>]
  1707. // CHECK:STDOUT: %T.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc239_112.1, constants.%T.as.Destroy.impl.Op.d25
  1708. // CHECK:STDOUT: %T.as.Destroy.impl.Op.specific_fn: <specific function> = specific_function constants.%T.as.Destroy.impl.Op.d25, @T.as.Destroy.impl.Op(constants.%array_type.a41) [concrete = constants.%T.as.Destroy.impl.Op.specific_fn]
  1709. // CHECK:STDOUT: %bound_method: <bound method> = bound_method %.loc239_112.1, %T.as.Destroy.impl.Op.specific_fn
  1710. // CHECK:STDOUT: %addr: %ptr.f40 = addr_of %.loc239_112.1
  1711. // CHECK:STDOUT: %T.as.Destroy.impl.Op.call: init %empty_tuple.type = call %bound_method(%addr)
  1712. // CHECK:STDOUT: return <error> to %return
  1713. // CHECK:STDOUT: }
  1714. // CHECK:STDOUT:
  1715. // CHECK:STDOUT: fn @SelfNestedBadReturnType.as.Destroy.impl.Op(%self.param: %ptr.612) = "no_op";
  1716. // CHECK:STDOUT:
  1717. // CHECK:STDOUT: specific @I.F(constants.%Self.826) {}
  1718. // CHECK:STDOUT:
  1719. // CHECK:STDOUT: specific @I.F(constants.%I.facet.fa4) {}
  1720. // CHECK:STDOUT:
  1721. // CHECK:STDOUT: specific @I.F(constants.%I.facet.ee5) {}
  1722. // CHECK:STDOUT:
  1723. // CHECK:STDOUT: specific @I.F(constants.%I.facet.d5c) {}
  1724. // CHECK:STDOUT:
  1725. // CHECK:STDOUT: specific @J.F(constants.%Self.ccd) {}
  1726. // CHECK:STDOUT:
  1727. // CHECK:STDOUT: specific @J.F(constants.%J.facet.94c) {}
  1728. // CHECK:STDOUT:
  1729. // CHECK:STDOUT: specific @J.F(constants.%J.facet.e7e) {}
  1730. // CHECK:STDOUT:
  1731. // CHECK:STDOUT: specific @J.F(constants.%J.facet.974) {}
  1732. // CHECK:STDOUT:
  1733. // CHECK:STDOUT: specific @J.F(constants.%J.facet.37e) {}
  1734. // CHECK:STDOUT:
  1735. // CHECK:STDOUT: specific @J.F(constants.%J.facet.bf1) {}
  1736. // CHECK:STDOUT:
  1737. // CHECK:STDOUT: specific @J.F(constants.%J.facet.67f) {}
  1738. // CHECK:STDOUT:
  1739. // CHECK:STDOUT: specific @SelfNested.F(constants.%Self.2ff) {
  1740. // CHECK:STDOUT: %Self => constants.%Self.2ff
  1741. // CHECK:STDOUT: %Self.as_type.loc211_16.1 => constants.%Self.as_type.e1e
  1742. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.e87
  1743. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.81e
  1744. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.229
  1745. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.ced
  1746. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.873
  1747. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.c7e
  1748. // CHECK:STDOUT: }
  1749. // CHECK:STDOUT:
  1750. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.608) {
  1751. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.608
  1752. // CHECK:STDOUT: %Self.as_type.loc211_16.1 => constants.%SelfNestedBadParam
  1753. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.4cd
  1754. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.a89
  1755. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.9c9
  1756. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.a5c
  1757. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.a41
  1758. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.1f1
  1759. // CHECK:STDOUT: }
  1760. // CHECK:STDOUT:
  1761. // CHECK:STDOUT: specific @SelfNested.F(constants.%SelfNested.facet.766) {
  1762. // CHECK:STDOUT: %Self => constants.%SelfNested.facet.766
  1763. // CHECK:STDOUT: %Self.as_type.loc211_16.1 => constants.%SelfNestedBadReturnType
  1764. // CHECK:STDOUT: %ptr.loc211_16.1 => constants.%ptr.612
  1765. // CHECK:STDOUT: %struct_type.x.y.loc211_37.1 => constants.%struct_type.x.y.ac5
  1766. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.eb9
  1767. // CHECK:STDOUT: %pattern_type.loc211_8 => constants.%pattern_type.23f
  1768. // CHECK:STDOUT: %array_type.loc211_57.1 => constants.%array_type.126
  1769. // CHECK:STDOUT: %pattern_type.loc211_41 => constants.%pattern_type.f56
  1770. // CHECK:STDOUT: }
  1771. // CHECK:STDOUT: