fail_impl_bad_assoc_fn.carbon 107 KB

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