member_lookup.carbon 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/member_lookup.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/member_lookup.carbon
  10. // --- member_access.carbon
  11. library "[[@TEST_NAME]]";
  12. interface Interface(T:! type) {
  13. let X:! T;
  14. }
  15. fn AccessGeneric[T:! type](I:! Interface(T)) -> T {
  16. return I.X;
  17. }
  18. fn AccessConcrete(I:! Interface(i32)) -> i32 {
  19. return I.X;
  20. }
  21. // --- fail_no_member.carbon
  22. library "[[@TEST_NAME]]";
  23. interface Interface(T:! type) {
  24. let X:! T;
  25. }
  26. fn AccessMissingGeneric[T:! type](I:! Interface(T)) -> T {
  27. // CHECK:STDERR: fail_no_member.carbon:[[@LINE+4]]:10: error: member name `nonesuch` not found in `Interface(T)` [MemberNameNotFoundInScope]
  28. // CHECK:STDERR: return I.nonesuch;
  29. // CHECK:STDERR: ^~~~~~~~~~
  30. // CHECK:STDERR:
  31. return I.nonesuch;
  32. }
  33. fn AccessMissingConcrete(I:! Interface(i32)) -> i32 {
  34. // CHECK:STDERR: fail_no_member.carbon:[[@LINE+4]]:10: error: member name `nonesuch` not found in `Interface(i32)` [MemberNameNotFoundInScope]
  35. // CHECK:STDERR: return I.nonesuch;
  36. // CHECK:STDERR: ^~~~~~~~~~
  37. // CHECK:STDERR:
  38. return I.nonesuch;
  39. }
  40. // CHECK:STDOUT: --- member_access.carbon
  41. // CHECK:STDOUT:
  42. // CHECK:STDOUT: constants {
  43. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic]
  44. // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic]
  45. // CHECK:STDOUT: %Interface.type.e32: type = generic_interface_type @Interface [template]
  46. // CHECK:STDOUT: %Interface.generic: %Interface.type.e32 = struct_value () [template]
  47. // CHECK:STDOUT: %Interface.type.d32: type = facet_type <@Interface, @Interface(%T)> [symbolic]
  48. // CHECK:STDOUT: %Self: %Interface.type.d32 = bind_symbolic_name Self, 1 [symbolic]
  49. // CHECK:STDOUT: %require_complete.4ae: <witness> = require_complete_type %T [symbolic]
  50. // CHECK:STDOUT: %Interface.assoc_type.3bd: type = assoc_entity_type %Interface.type.d32 [symbolic]
  51. // CHECK:STDOUT: %assoc0.ed7: %Interface.assoc_type.3bd = assoc_entity element0, @Interface.%X [symbolic]
  52. // CHECK:STDOUT: %I.a5f: %Interface.type.d32 = bind_symbolic_name I, 1 [symbolic]
  53. // CHECK:STDOUT: %I.patt.47c: %Interface.type.d32 = symbolic_binding_pattern I, 1 [symbolic]
  54. // CHECK:STDOUT: %AccessGeneric.type: type = fn_type @AccessGeneric [template]
  55. // CHECK:STDOUT: %AccessGeneric: %AccessGeneric.type = struct_value () [template]
  56. // CHECK:STDOUT: %require_complete.6f3: <witness> = require_complete_type %Interface.type.d32 [symbolic]
  57. // CHECK:STDOUT: %I.as_type.59e: type = facet_access_type %I.a5f [symbolic]
  58. // CHECK:STDOUT: %I.as_wit.9f4: <witness> = facet_access_witness %I.a5f [symbolic]
  59. // CHECK:STDOUT: %Interface.facet.856: %Interface.type.d32 = facet_value %I.as_type.59e, %I.as_wit.9f4 [symbolic]
  60. // CHECK:STDOUT: %impl.elem0.68a: %T = impl_witness_access %I.as_wit.9f4, element0 [symbolic]
  61. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template]
  62. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [template]
  63. // CHECK:STDOUT: %Interface.type.981: type = facet_type <@Interface, @Interface(%i32)> [template]
  64. // CHECK:STDOUT: %I.d08: %Interface.type.981 = bind_symbolic_name I, 0 [symbolic]
  65. // CHECK:STDOUT: %I.patt.1f8: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic]
  66. // CHECK:STDOUT: %AccessConcrete.type: type = fn_type @AccessConcrete [template]
  67. // CHECK:STDOUT: %AccessConcrete: %AccessConcrete.type = struct_value () [template]
  68. // CHECK:STDOUT: %i32.builtin: type = int_type signed, %int_32 [template]
  69. // CHECK:STDOUT: %complete_type.f8a: <witness> = complete_type_witness %i32.builtin [template]
  70. // CHECK:STDOUT: %Interface.assoc_type.44d: type = assoc_entity_type %Interface.type.981 [template]
  71. // CHECK:STDOUT: %assoc0.4ff: %Interface.assoc_type.44d = assoc_entity element0, @Interface.%X [template]
  72. // CHECK:STDOUT: %I.as_type.ee6: type = facet_access_type %I.d08 [symbolic]
  73. // CHECK:STDOUT: %I.as_wit.156: <witness> = facet_access_witness %I.d08 [symbolic]
  74. // CHECK:STDOUT: %Interface.facet.d35: %Interface.type.981 = facet_value %I.as_type.ee6, %I.as_wit.156 [symbolic]
  75. // CHECK:STDOUT: %impl.elem0.b00: %i32 = impl_witness_access %I.as_wit.156, element0 [symbolic]
  76. // CHECK:STDOUT: }
  77. // CHECK:STDOUT:
  78. // CHECK:STDOUT: imports {
  79. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  80. // CHECK:STDOUT: .Int = %Core.Int
  81. // CHECK:STDOUT: import Core//prelude
  82. // CHECK:STDOUT: import Core//prelude/...
  83. // CHECK:STDOUT: }
  84. // CHECK:STDOUT: }
  85. // CHECK:STDOUT:
  86. // CHECK:STDOUT: file {
  87. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  88. // CHECK:STDOUT: .Core = imports.%Core
  89. // CHECK:STDOUT: .Interface = %Interface.decl
  90. // CHECK:STDOUT: .AccessGeneric = %AccessGeneric.decl
  91. // CHECK:STDOUT: .AccessConcrete = %AccessConcrete.decl
  92. // CHECK:STDOUT: }
  93. // CHECK:STDOUT: %Core.import = import Core
  94. // CHECK:STDOUT: %Interface.decl: %Interface.type.e32 = interface_decl @Interface [template = constants.%Interface.generic] {
  95. // CHECK:STDOUT: %T.patt.loc4_21.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  96. // CHECK:STDOUT: %T.param_patt: type = value_param_pattern %T.patt.loc4_21.1, runtime_param<none> [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  97. // CHECK:STDOUT: } {
  98. // CHECK:STDOUT: %T.param: type = value_param runtime_param<none>
  99. // CHECK:STDOUT: %T.loc4_21.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_21.2 (constants.%T)]
  100. // CHECK:STDOUT: }
  101. // CHECK:STDOUT: %AccessGeneric.decl: %AccessGeneric.type = fn_decl @AccessGeneric [template = constants.%AccessGeneric] {
  102. // CHECK:STDOUT: %T.patt.loc8_18.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_18.2 (constants.%T.patt)]
  103. // CHECK:STDOUT: %T.param_patt: type = value_param_pattern %T.patt.loc8_18.1, runtime_param<none> [symbolic = %T.patt.loc8_18.2 (constants.%T.patt)]
  104. // CHECK:STDOUT: %I.patt.loc8_28.1: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) = symbolic_binding_pattern I, 1 [symbolic = %I.patt.loc8_28.2 (constants.%I.patt.47c)]
  105. // CHECK:STDOUT: %I.param_patt: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) = value_param_pattern %I.patt.loc8_28.1, runtime_param<none> [symbolic = %I.patt.loc8_28.2 (constants.%I.patt.47c)]
  106. // CHECK:STDOUT: %return.patt: @AccessGeneric.%T.loc8_18.2 (%T) = return_slot_pattern
  107. // CHECK:STDOUT: %return.param_patt: @AccessGeneric.%T.loc8_18.2 (%T) = out_param_pattern %return.patt, runtime_param0
  108. // CHECK:STDOUT: } {
  109. // CHECK:STDOUT: %T.ref.loc8_49: type = name_ref T, %T.loc8_18.1 [symbolic = %T.loc8_18.2 (constants.%T)]
  110. // CHECK:STDOUT: %T.param: type = value_param runtime_param<none>
  111. // CHECK:STDOUT: %T.loc8_18.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_18.2 (constants.%T)]
  112. // CHECK:STDOUT: %I.param: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) = value_param runtime_param<none>
  113. // CHECK:STDOUT: %.loc8: type = splice_block %Interface.type.loc8_43.1 [symbolic = %Interface.type.loc8_43.2 (constants.%Interface.type.d32)] {
  114. // CHECK:STDOUT: %Interface.ref: %Interface.type.e32 = name_ref Interface, file.%Interface.decl [template = constants.%Interface.generic]
  115. // CHECK:STDOUT: %T.ref.loc8_42: type = name_ref T, %T.loc8_18.1 [symbolic = %T.loc8_18.2 (constants.%T)]
  116. // CHECK:STDOUT: %Interface.type.loc8_43.1: type = facet_type <@Interface, @Interface(constants.%T)> [symbolic = %Interface.type.loc8_43.2 (constants.%Interface.type.d32)]
  117. // CHECK:STDOUT: }
  118. // CHECK:STDOUT: %I.loc8_28.1: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) = bind_symbolic_name I, 1, %I.param [symbolic = %I.loc8_28.2 (constants.%I.a5f)]
  119. // CHECK:STDOUT: %return.param: ref @AccessGeneric.%T.loc8_18.2 (%T) = out_param runtime_param0
  120. // CHECK:STDOUT: %return: ref @AccessGeneric.%T.loc8_18.2 (%T) = return_slot %return.param
  121. // CHECK:STDOUT: }
  122. // CHECK:STDOUT: %AccessConcrete.decl: %AccessConcrete.type = fn_decl @AccessConcrete [template = constants.%AccessConcrete] {
  123. // CHECK:STDOUT: %I.patt.loc12_19.1: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic = %I.patt.loc12_19.2 (constants.%I.patt.1f8)]
  124. // CHECK:STDOUT: %I.param_patt: %Interface.type.981 = value_param_pattern %I.patt.loc12_19.1, runtime_param<none> [symbolic = %I.patt.loc12_19.2 (constants.%I.patt.1f8)]
  125. // CHECK:STDOUT: %return.patt: %i32 = return_slot_pattern
  126. // CHECK:STDOUT: %return.param_patt: %i32 = out_param_pattern %return.patt, runtime_param0
  127. // CHECK:STDOUT: } {
  128. // CHECK:STDOUT: %int_32.loc12_42: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  129. // CHECK:STDOUT: %i32.loc12_42: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  130. // CHECK:STDOUT: %I.param: %Interface.type.981 = value_param runtime_param<none>
  131. // CHECK:STDOUT: %.loc12: type = splice_block %Interface.type [template = constants.%Interface.type.981] {
  132. // CHECK:STDOUT: %Interface.ref: %Interface.type.e32 = name_ref Interface, file.%Interface.decl [template = constants.%Interface.generic]
  133. // CHECK:STDOUT: %int_32.loc12_33: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  134. // CHECK:STDOUT: %i32.loc12_33: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  135. // CHECK:STDOUT: %Interface.type: type = facet_type <@Interface, @Interface(constants.%i32)> [template = constants.%Interface.type.981]
  136. // CHECK:STDOUT: }
  137. // CHECK:STDOUT: %I.loc12_19.1: %Interface.type.981 = bind_symbolic_name I, 0, %I.param [symbolic = %I.loc12_19.2 (constants.%I.d08)]
  138. // CHECK:STDOUT: %return.param: ref %i32 = out_param runtime_param0
  139. // CHECK:STDOUT: %return: ref %i32 = return_slot %return.param
  140. // CHECK:STDOUT: }
  141. // CHECK:STDOUT: }
  142. // CHECK:STDOUT:
  143. // CHECK:STDOUT: generic interface @Interface(%T.loc4_21.1: type) {
  144. // CHECK:STDOUT: %T.loc4_21.2: type = bind_symbolic_name T, 0 [symbolic = %T.loc4_21.2 (constants.%T)]
  145. // CHECK:STDOUT: %T.patt.loc4_21.2: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  146. // CHECK:STDOUT:
  147. // CHECK:STDOUT: !definition:
  148. // CHECK:STDOUT: %Interface.type: type = facet_type <@Interface, @Interface(%T.loc4_21.2)> [symbolic = %Interface.type (constants.%Interface.type.d32)]
  149. // CHECK:STDOUT: %Self.2: %Interface.type.d32 = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  150. // CHECK:STDOUT: %Interface.assoc_type: type = assoc_entity_type @Interface.%Interface.type (%Interface.type.d32) [symbolic = %Interface.assoc_type (constants.%Interface.assoc_type.3bd)]
  151. // CHECK:STDOUT: %assoc0: @Interface.%Interface.assoc_type (%Interface.assoc_type.3bd) = assoc_entity element0, %X [symbolic = %assoc0 (constants.%assoc0.ed7)]
  152. // CHECK:STDOUT:
  153. // CHECK:STDOUT: interface {
  154. // CHECK:STDOUT: %Self.1: @Interface.%Interface.type (%Interface.type.d32) = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  155. // CHECK:STDOUT: %X: @X.%T (%T) = assoc_const_decl @X [template] {
  156. // CHECK:STDOUT: %assoc0: @Interface.%Interface.assoc_type (%Interface.assoc_type.3bd) = assoc_entity element0, @Interface.%X [symbolic = @Interface.%assoc0 (constants.%assoc0.ed7)]
  157. // CHECK:STDOUT: }
  158. // CHECK:STDOUT:
  159. // CHECK:STDOUT: !members:
  160. // CHECK:STDOUT: .Self = %Self.1
  161. // CHECK:STDOUT: .X = @X.%assoc0
  162. // CHECK:STDOUT: witness = (%X)
  163. // CHECK:STDOUT: }
  164. // CHECK:STDOUT: }
  165. // CHECK:STDOUT:
  166. // CHECK:STDOUT: generic assoc_const @X(@Interface.%T.loc4_21.1: type, @Interface.%Self.1: @Interface.%Interface.type (%Interface.type.d32)) {
  167. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
  168. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type @X.%T (%T) [symbolic = %require_complete (constants.%require_complete.4ae)]
  169. // CHECK:STDOUT:
  170. // CHECK:STDOUT: assoc_const X:! @X.%T (%T);
  171. // CHECK:STDOUT: }
  172. // CHECK:STDOUT:
  173. // CHECK:STDOUT: generic fn @AccessGeneric(%T.loc8_18.1: type, %I.loc8_28.1: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32)) {
  174. // CHECK:STDOUT: %T.loc8_18.2: type = bind_symbolic_name T, 0 [symbolic = %T.loc8_18.2 (constants.%T)]
  175. // CHECK:STDOUT: %T.patt.loc8_18.2: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_18.2 (constants.%T.patt)]
  176. // CHECK:STDOUT: %Interface.type.loc8_43.2: type = facet_type <@Interface, @Interface(%T.loc8_18.2)> [symbolic = %Interface.type.loc8_43.2 (constants.%Interface.type.d32)]
  177. // CHECK:STDOUT: %I.loc8_28.2: %Interface.type.d32 = bind_symbolic_name I, 1 [symbolic = %I.loc8_28.2 (constants.%I.a5f)]
  178. // CHECK:STDOUT: %I.patt.loc8_28.2: %Interface.type.d32 = symbolic_binding_pattern I, 1 [symbolic = %I.patt.loc8_28.2 (constants.%I.patt.47c)]
  179. // CHECK:STDOUT:
  180. // CHECK:STDOUT: !definition:
  181. // CHECK:STDOUT: %require_complete.loc9_10: <witness> = require_complete_type @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) [symbolic = %require_complete.loc9_10 (constants.%require_complete.6f3)]
  182. // CHECK:STDOUT: %Interface.assoc_type: type = assoc_entity_type @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) [symbolic = %Interface.assoc_type (constants.%Interface.assoc_type.3bd)]
  183. // CHECK:STDOUT: %assoc0: @AccessGeneric.%Interface.assoc_type (%Interface.assoc_type.3bd) = assoc_entity element0, @Interface.%X [symbolic = %assoc0 (constants.%assoc0.ed7)]
  184. // CHECK:STDOUT: %I.as_type.loc9_11.2: type = facet_access_type %I.loc8_28.2 [symbolic = %I.as_type.loc9_11.2 (constants.%I.as_type.59e)]
  185. // CHECK:STDOUT: %I.as_wit.loc9_11.2: <witness> = facet_access_witness %I.loc8_28.2 [symbolic = %I.as_wit.loc9_11.2 (constants.%I.as_wit.9f4)]
  186. // CHECK:STDOUT: %impl.elem0.loc9_11.2: @AccessGeneric.%T.loc8_18.2 (%T) = impl_witness_access %I.as_wit.loc9_11.2, element0 [symbolic = %impl.elem0.loc9_11.2 (constants.%impl.elem0.68a)]
  187. // CHECK:STDOUT: %require_complete.loc9_13: <witness> = require_complete_type @AccessGeneric.%T.loc8_18.2 (%T) [symbolic = %require_complete.loc9_13 (constants.%require_complete.4ae)]
  188. // CHECK:STDOUT:
  189. // CHECK:STDOUT: fn[%T.param_patt: type](%I.param_patt: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32)) -> @AccessGeneric.%T.loc8_18.2 (%T) {
  190. // CHECK:STDOUT: !entry:
  191. // CHECK:STDOUT: %I.ref: @AccessGeneric.%Interface.type.loc8_43.2 (%Interface.type.d32) = name_ref I, %I.loc8_28.1 [symbolic = %I.loc8_28.2 (constants.%I.a5f)]
  192. // CHECK:STDOUT: %.loc9_11.1: @AccessGeneric.%Interface.assoc_type (%Interface.assoc_type.3bd) = specific_constant @X.%assoc0, @Interface(constants.%T) [symbolic = %assoc0 (constants.%assoc0.ed7)]
  193. // CHECK:STDOUT: %X.ref: @AccessGeneric.%Interface.assoc_type (%Interface.assoc_type.3bd) = name_ref X, %.loc9_11.1 [symbolic = %assoc0 (constants.%assoc0.ed7)]
  194. // CHECK:STDOUT: %I.as_type.loc9_11.1: type = facet_access_type %I.ref [symbolic = %I.as_type.loc9_11.2 (constants.%I.as_type.59e)]
  195. // CHECK:STDOUT: %.loc9_11.2: type = converted %I.ref, %I.as_type.loc9_11.1 [symbolic = %I.as_type.loc9_11.2 (constants.%I.as_type.59e)]
  196. // CHECK:STDOUT: %I.as_wit.loc9_11.1: <witness> = facet_access_witness %I.ref [symbolic = %I.as_wit.loc9_11.2 (constants.%I.as_wit.9f4)]
  197. // CHECK:STDOUT: %impl.elem0.loc9_11.1: @AccessGeneric.%T.loc8_18.2 (%T) = impl_witness_access %I.as_wit.loc9_11.1, element0 [symbolic = %impl.elem0.loc9_11.2 (constants.%impl.elem0.68a)]
  198. // CHECK:STDOUT: return %impl.elem0.loc9_11.1
  199. // CHECK:STDOUT: }
  200. // CHECK:STDOUT: }
  201. // CHECK:STDOUT:
  202. // CHECK:STDOUT: generic fn @AccessConcrete(%I.loc12_19.1: %Interface.type.981) {
  203. // CHECK:STDOUT: %I.loc12_19.2: %Interface.type.981 = bind_symbolic_name I, 0 [symbolic = %I.loc12_19.2 (constants.%I.d08)]
  204. // CHECK:STDOUT: %I.patt.loc12_19.2: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic = %I.patt.loc12_19.2 (constants.%I.patt.1f8)]
  205. // CHECK:STDOUT:
  206. // CHECK:STDOUT: !definition:
  207. // CHECK:STDOUT: %I.as_type.loc13_11.2: type = facet_access_type %I.loc12_19.2 [symbolic = %I.as_type.loc13_11.2 (constants.%I.as_type.ee6)]
  208. // CHECK:STDOUT: %I.as_wit.loc13_11.2: <witness> = facet_access_witness %I.loc12_19.2 [symbolic = %I.as_wit.loc13_11.2 (constants.%I.as_wit.156)]
  209. // CHECK:STDOUT: %impl.elem0.loc13_11.2: %i32 = impl_witness_access %I.as_wit.loc13_11.2, element0 [symbolic = %impl.elem0.loc13_11.2 (constants.%impl.elem0.b00)]
  210. // CHECK:STDOUT:
  211. // CHECK:STDOUT: fn(%I.param_patt: %Interface.type.981) -> %i32 {
  212. // CHECK:STDOUT: !entry:
  213. // CHECK:STDOUT: %I.ref: %Interface.type.981 = name_ref I, %I.loc12_19.1 [symbolic = %I.loc12_19.2 (constants.%I.d08)]
  214. // CHECK:STDOUT: %.loc13_11.1: %Interface.assoc_type.44d = specific_constant @X.%assoc0, @Interface(constants.%i32) [template = constants.%assoc0.4ff]
  215. // CHECK:STDOUT: %X.ref: %Interface.assoc_type.44d = name_ref X, %.loc13_11.1 [template = constants.%assoc0.4ff]
  216. // CHECK:STDOUT: %I.as_type.loc13_11.1: type = facet_access_type %I.ref [symbolic = %I.as_type.loc13_11.2 (constants.%I.as_type.ee6)]
  217. // CHECK:STDOUT: %.loc13_11.2: type = converted %I.ref, %I.as_type.loc13_11.1 [symbolic = %I.as_type.loc13_11.2 (constants.%I.as_type.ee6)]
  218. // CHECK:STDOUT: %I.as_wit.loc13_11.1: <witness> = facet_access_witness %I.ref [symbolic = %I.as_wit.loc13_11.2 (constants.%I.as_wit.156)]
  219. // CHECK:STDOUT: %impl.elem0.loc13_11.1: %i32 = impl_witness_access %I.as_wit.loc13_11.1, element0 [symbolic = %impl.elem0.loc13_11.2 (constants.%impl.elem0.b00)]
  220. // CHECK:STDOUT: return %impl.elem0.loc13_11.1
  221. // CHECK:STDOUT: }
  222. // CHECK:STDOUT: }
  223. // CHECK:STDOUT:
  224. // CHECK:STDOUT: specific @Interface(constants.%T) {
  225. // CHECK:STDOUT: %T.loc4_21.2 => constants.%T
  226. // CHECK:STDOUT: %T.patt.loc4_21.2 => constants.%T
  227. // CHECK:STDOUT:
  228. // CHECK:STDOUT: !definition:
  229. // CHECK:STDOUT: %Interface.type => constants.%Interface.type.d32
  230. // CHECK:STDOUT: %Self.2 => constants.%Self
  231. // CHECK:STDOUT: %Interface.assoc_type => constants.%Interface.assoc_type.3bd
  232. // CHECK:STDOUT: %assoc0 => constants.%assoc0.ed7
  233. // CHECK:STDOUT: }
  234. // CHECK:STDOUT:
  235. // CHECK:STDOUT: specific @X(constants.%T, constants.%Self) {
  236. // CHECK:STDOUT: %T => constants.%T
  237. // CHECK:STDOUT: %require_complete => constants.%require_complete.4ae
  238. // CHECK:STDOUT: }
  239. // CHECK:STDOUT:
  240. // CHECK:STDOUT: specific @Interface(%T.loc4_21.2) {}
  241. // CHECK:STDOUT:
  242. // CHECK:STDOUT: specific @AccessGeneric(constants.%T, constants.%I.a5f) {
  243. // CHECK:STDOUT: %T.loc8_18.2 => constants.%T
  244. // CHECK:STDOUT: %T.patt.loc8_18.2 => constants.%T
  245. // CHECK:STDOUT: %Interface.type.loc8_43.2 => constants.%Interface.type.d32
  246. // CHECK:STDOUT: %I.loc8_28.2 => constants.%I.a5f
  247. // CHECK:STDOUT: %I.patt.loc8_28.2 => constants.%I.a5f
  248. // CHECK:STDOUT: }
  249. // CHECK:STDOUT:
  250. // CHECK:STDOUT: specific @Interface(@AccessGeneric.%T.loc8_18.2) {}
  251. // CHECK:STDOUT:
  252. // CHECK:STDOUT: specific @X(constants.%T, constants.%Interface.facet.856) {
  253. // CHECK:STDOUT: %T => constants.%T
  254. // CHECK:STDOUT: %require_complete => constants.%require_complete.4ae
  255. // CHECK:STDOUT: }
  256. // CHECK:STDOUT:
  257. // CHECK:STDOUT: specific @Interface(constants.%i32) {
  258. // CHECK:STDOUT: %T.loc4_21.2 => constants.%i32
  259. // CHECK:STDOUT: %T.patt.loc4_21.2 => constants.%i32
  260. // CHECK:STDOUT:
  261. // CHECK:STDOUT: !definition:
  262. // CHECK:STDOUT: %Interface.type => constants.%Interface.type.981
  263. // CHECK:STDOUT: %Self.2 => constants.%Self
  264. // CHECK:STDOUT: %Interface.assoc_type => constants.%Interface.assoc_type.44d
  265. // CHECK:STDOUT: %assoc0 => constants.%assoc0.4ff
  266. // CHECK:STDOUT: }
  267. // CHECK:STDOUT:
  268. // CHECK:STDOUT: specific @AccessConcrete(constants.%I.d08) {
  269. // CHECK:STDOUT: %I.loc12_19.2 => constants.%I.d08
  270. // CHECK:STDOUT: %I.patt.loc12_19.2 => constants.%I.d08
  271. // CHECK:STDOUT: }
  272. // CHECK:STDOUT:
  273. // CHECK:STDOUT: specific @X(constants.%i32, constants.%Interface.facet.d35) {
  274. // CHECK:STDOUT: %T => constants.%i32
  275. // CHECK:STDOUT: %require_complete => constants.%complete_type.f8a
  276. // CHECK:STDOUT: }
  277. // CHECK:STDOUT:
  278. // CHECK:STDOUT: --- fail_no_member.carbon
  279. // CHECK:STDOUT:
  280. // CHECK:STDOUT: constants {
  281. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic]
  282. // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic]
  283. // CHECK:STDOUT: %Interface.type.e32: type = generic_interface_type @Interface [template]
  284. // CHECK:STDOUT: %Interface.generic: %Interface.type.e32 = struct_value () [template]
  285. // CHECK:STDOUT: %Interface.type.d32: type = facet_type <@Interface, @Interface(%T)> [symbolic]
  286. // CHECK:STDOUT: %Self: %Interface.type.d32 = bind_symbolic_name Self, 1 [symbolic]
  287. // CHECK:STDOUT: %require_complete.4ae: <witness> = require_complete_type %T [symbolic]
  288. // CHECK:STDOUT: %Interface.assoc_type.3bd: type = assoc_entity_type %Interface.type.d32 [symbolic]
  289. // CHECK:STDOUT: %assoc0.ed7: %Interface.assoc_type.3bd = assoc_entity element0, @Interface.%X [symbolic]
  290. // CHECK:STDOUT: %I.a5f: %Interface.type.d32 = bind_symbolic_name I, 1 [symbolic]
  291. // CHECK:STDOUT: %I.patt.47c: %Interface.type.d32 = symbolic_binding_pattern I, 1 [symbolic]
  292. // CHECK:STDOUT: %AccessMissingGeneric.type: type = fn_type @AccessMissingGeneric [template]
  293. // CHECK:STDOUT: %AccessMissingGeneric: %AccessMissingGeneric.type = struct_value () [template]
  294. // CHECK:STDOUT: %require_complete.6f3: <witness> = require_complete_type %Interface.type.d32 [symbolic]
  295. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template]
  296. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [template]
  297. // CHECK:STDOUT: %Interface.type.981: type = facet_type <@Interface, @Interface(%i32)> [template]
  298. // CHECK:STDOUT: %I.d08: %Interface.type.981 = bind_symbolic_name I, 0 [symbolic]
  299. // CHECK:STDOUT: %I.patt.1f8: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic]
  300. // CHECK:STDOUT: %AccessMissingConcrete.type: type = fn_type @AccessMissingConcrete [template]
  301. // CHECK:STDOUT: %AccessMissingConcrete: %AccessMissingConcrete.type = struct_value () [template]
  302. // CHECK:STDOUT: %Interface.assoc_type.44d: type = assoc_entity_type %Interface.type.981 [template]
  303. // CHECK:STDOUT: %assoc0.4ff: %Interface.assoc_type.44d = assoc_entity element0, @Interface.%X [template]
  304. // CHECK:STDOUT: }
  305. // CHECK:STDOUT:
  306. // CHECK:STDOUT: imports {
  307. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  308. // CHECK:STDOUT: .Int = %Core.Int
  309. // CHECK:STDOUT: import Core//prelude
  310. // CHECK:STDOUT: import Core//prelude/...
  311. // CHECK:STDOUT: }
  312. // CHECK:STDOUT: }
  313. // CHECK:STDOUT:
  314. // CHECK:STDOUT: file {
  315. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  316. // CHECK:STDOUT: .Core = imports.%Core
  317. // CHECK:STDOUT: .Interface = %Interface.decl
  318. // CHECK:STDOUT: .AccessMissingGeneric = %AccessMissingGeneric.decl
  319. // CHECK:STDOUT: .AccessMissingConcrete = %AccessMissingConcrete.decl
  320. // CHECK:STDOUT: }
  321. // CHECK:STDOUT: %Core.import = import Core
  322. // CHECK:STDOUT: %Interface.decl: %Interface.type.e32 = interface_decl @Interface [template = constants.%Interface.generic] {
  323. // CHECK:STDOUT: %T.patt.loc4_21.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  324. // CHECK:STDOUT: %T.param_patt: type = value_param_pattern %T.patt.loc4_21.1, runtime_param<none> [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  325. // CHECK:STDOUT: } {
  326. // CHECK:STDOUT: %T.param: type = value_param runtime_param<none>
  327. // CHECK:STDOUT: %T.loc4_21.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc4_21.2 (constants.%T)]
  328. // CHECK:STDOUT: }
  329. // CHECK:STDOUT: %AccessMissingGeneric.decl: %AccessMissingGeneric.type = fn_decl @AccessMissingGeneric [template = constants.%AccessMissingGeneric] {
  330. // CHECK:STDOUT: %T.patt.loc8_25.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_25.2 (constants.%T.patt)]
  331. // CHECK:STDOUT: %T.param_patt: type = value_param_pattern %T.patt.loc8_25.1, runtime_param<none> [symbolic = %T.patt.loc8_25.2 (constants.%T.patt)]
  332. // CHECK:STDOUT: %I.patt.loc8_35.1: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) = symbolic_binding_pattern I, 1 [symbolic = %I.patt.loc8_35.2 (constants.%I.patt.47c)]
  333. // CHECK:STDOUT: %I.param_patt: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) = value_param_pattern %I.patt.loc8_35.1, runtime_param<none> [symbolic = %I.patt.loc8_35.2 (constants.%I.patt.47c)]
  334. // CHECK:STDOUT: %return.patt: @AccessMissingGeneric.%T.loc8_25.2 (%T) = return_slot_pattern
  335. // CHECK:STDOUT: %return.param_patt: @AccessMissingGeneric.%T.loc8_25.2 (%T) = out_param_pattern %return.patt, runtime_param0
  336. // CHECK:STDOUT: } {
  337. // CHECK:STDOUT: %T.ref.loc8_56: type = name_ref T, %T.loc8_25.1 [symbolic = %T.loc8_25.2 (constants.%T)]
  338. // CHECK:STDOUT: %T.param: type = value_param runtime_param<none>
  339. // CHECK:STDOUT: %T.loc8_25.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc8_25.2 (constants.%T)]
  340. // CHECK:STDOUT: %I.param: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) = value_param runtime_param<none>
  341. // CHECK:STDOUT: %.loc8: type = splice_block %Interface.type.loc8_50.1 [symbolic = %Interface.type.loc8_50.2 (constants.%Interface.type.d32)] {
  342. // CHECK:STDOUT: %Interface.ref: %Interface.type.e32 = name_ref Interface, file.%Interface.decl [template = constants.%Interface.generic]
  343. // CHECK:STDOUT: %T.ref.loc8_49: type = name_ref T, %T.loc8_25.1 [symbolic = %T.loc8_25.2 (constants.%T)]
  344. // CHECK:STDOUT: %Interface.type.loc8_50.1: type = facet_type <@Interface, @Interface(constants.%T)> [symbolic = %Interface.type.loc8_50.2 (constants.%Interface.type.d32)]
  345. // CHECK:STDOUT: }
  346. // CHECK:STDOUT: %I.loc8_35.1: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) = bind_symbolic_name I, 1, %I.param [symbolic = %I.loc8_35.2 (constants.%I.a5f)]
  347. // CHECK:STDOUT: %return.param: ref @AccessMissingGeneric.%T.loc8_25.2 (%T) = out_param runtime_param0
  348. // CHECK:STDOUT: %return: ref @AccessMissingGeneric.%T.loc8_25.2 (%T) = return_slot %return.param
  349. // CHECK:STDOUT: }
  350. // CHECK:STDOUT: %AccessMissingConcrete.decl: %AccessMissingConcrete.type = fn_decl @AccessMissingConcrete [template = constants.%AccessMissingConcrete] {
  351. // CHECK:STDOUT: %I.patt.loc16_26.1: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic = %I.patt.loc16_26.2 (constants.%I.patt.1f8)]
  352. // CHECK:STDOUT: %I.param_patt: %Interface.type.981 = value_param_pattern %I.patt.loc16_26.1, runtime_param<none> [symbolic = %I.patt.loc16_26.2 (constants.%I.patt.1f8)]
  353. // CHECK:STDOUT: %return.patt: %i32 = return_slot_pattern
  354. // CHECK:STDOUT: %return.param_patt: %i32 = out_param_pattern %return.patt, runtime_param0
  355. // CHECK:STDOUT: } {
  356. // CHECK:STDOUT: %int_32.loc16_49: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  357. // CHECK:STDOUT: %i32.loc16_49: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  358. // CHECK:STDOUT: %I.param: %Interface.type.981 = value_param runtime_param<none>
  359. // CHECK:STDOUT: %.loc16: type = splice_block %Interface.type [template = constants.%Interface.type.981] {
  360. // CHECK:STDOUT: %Interface.ref: %Interface.type.e32 = name_ref Interface, file.%Interface.decl [template = constants.%Interface.generic]
  361. // CHECK:STDOUT: %int_32.loc16_40: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  362. // CHECK:STDOUT: %i32.loc16_40: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  363. // CHECK:STDOUT: %Interface.type: type = facet_type <@Interface, @Interface(constants.%i32)> [template = constants.%Interface.type.981]
  364. // CHECK:STDOUT: }
  365. // CHECK:STDOUT: %I.loc16_26.1: %Interface.type.981 = bind_symbolic_name I, 0, %I.param [symbolic = %I.loc16_26.2 (constants.%I.d08)]
  366. // CHECK:STDOUT: %return.param: ref %i32 = out_param runtime_param0
  367. // CHECK:STDOUT: %return: ref %i32 = return_slot %return.param
  368. // CHECK:STDOUT: }
  369. // CHECK:STDOUT: }
  370. // CHECK:STDOUT:
  371. // CHECK:STDOUT: generic interface @Interface(%T.loc4_21.1: type) {
  372. // CHECK:STDOUT: %T.loc4_21.2: type = bind_symbolic_name T, 0 [symbolic = %T.loc4_21.2 (constants.%T)]
  373. // CHECK:STDOUT: %T.patt.loc4_21.2: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc4_21.2 (constants.%T.patt)]
  374. // CHECK:STDOUT:
  375. // CHECK:STDOUT: !definition:
  376. // CHECK:STDOUT: %Interface.type: type = facet_type <@Interface, @Interface(%T.loc4_21.2)> [symbolic = %Interface.type (constants.%Interface.type.d32)]
  377. // CHECK:STDOUT: %Self.2: %Interface.type.d32 = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  378. // CHECK:STDOUT: %Interface.assoc_type: type = assoc_entity_type @Interface.%Interface.type (%Interface.type.d32) [symbolic = %Interface.assoc_type (constants.%Interface.assoc_type.3bd)]
  379. // CHECK:STDOUT: %assoc0: @Interface.%Interface.assoc_type (%Interface.assoc_type.3bd) = assoc_entity element0, %X [symbolic = %assoc0 (constants.%assoc0.ed7)]
  380. // CHECK:STDOUT:
  381. // CHECK:STDOUT: interface {
  382. // CHECK:STDOUT: %Self.1: @Interface.%Interface.type (%Interface.type.d32) = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  383. // CHECK:STDOUT: %X: @X.%T (%T) = assoc_const_decl @X [template] {
  384. // CHECK:STDOUT: %assoc0: @Interface.%Interface.assoc_type (%Interface.assoc_type.3bd) = assoc_entity element0, @Interface.%X [symbolic = @Interface.%assoc0 (constants.%assoc0.ed7)]
  385. // CHECK:STDOUT: }
  386. // CHECK:STDOUT:
  387. // CHECK:STDOUT: !members:
  388. // CHECK:STDOUT: .Self = %Self.1
  389. // CHECK:STDOUT: .X = @X.%assoc0
  390. // CHECK:STDOUT: witness = (%X)
  391. // CHECK:STDOUT: }
  392. // CHECK:STDOUT: }
  393. // CHECK:STDOUT:
  394. // CHECK:STDOUT: generic assoc_const @X(@Interface.%T.loc4_21.1: type, @Interface.%Self.1: @Interface.%Interface.type (%Interface.type.d32)) {
  395. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic = %T (constants.%T)]
  396. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type @X.%T (%T) [symbolic = %require_complete (constants.%require_complete.4ae)]
  397. // CHECK:STDOUT:
  398. // CHECK:STDOUT: assoc_const X:! @X.%T (%T);
  399. // CHECK:STDOUT: }
  400. // CHECK:STDOUT:
  401. // CHECK:STDOUT: generic fn @AccessMissingGeneric(%T.loc8_25.1: type, %I.loc8_35.1: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32)) {
  402. // CHECK:STDOUT: %T.loc8_25.2: type = bind_symbolic_name T, 0 [symbolic = %T.loc8_25.2 (constants.%T)]
  403. // CHECK:STDOUT: %T.patt.loc8_25.2: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc8_25.2 (constants.%T.patt)]
  404. // CHECK:STDOUT: %Interface.type.loc8_50.2: type = facet_type <@Interface, @Interface(%T.loc8_25.2)> [symbolic = %Interface.type.loc8_50.2 (constants.%Interface.type.d32)]
  405. // CHECK:STDOUT: %I.loc8_35.2: %Interface.type.d32 = bind_symbolic_name I, 1 [symbolic = %I.loc8_35.2 (constants.%I.a5f)]
  406. // CHECK:STDOUT: %I.patt.loc8_35.2: %Interface.type.d32 = symbolic_binding_pattern I, 1 [symbolic = %I.patt.loc8_35.2 (constants.%I.patt.47c)]
  407. // CHECK:STDOUT:
  408. // CHECK:STDOUT: !definition:
  409. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) [symbolic = %require_complete (constants.%require_complete.6f3)]
  410. // CHECK:STDOUT:
  411. // CHECK:STDOUT: fn[%T.param_patt: type](%I.param_patt: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32)) -> @AccessMissingGeneric.%T.loc8_25.2 (%T) {
  412. // CHECK:STDOUT: !entry:
  413. // CHECK:STDOUT: %I.ref: @AccessMissingGeneric.%Interface.type.loc8_50.2 (%Interface.type.d32) = name_ref I, %I.loc8_35.1 [symbolic = %I.loc8_35.2 (constants.%I.a5f)]
  414. // CHECK:STDOUT: %nonesuch.ref: <error> = name_ref nonesuch, <error> [template = <error>]
  415. // CHECK:STDOUT: return <error>
  416. // CHECK:STDOUT: }
  417. // CHECK:STDOUT: }
  418. // CHECK:STDOUT:
  419. // CHECK:STDOUT: generic fn @AccessMissingConcrete(%I.loc16_26.1: %Interface.type.981) {
  420. // CHECK:STDOUT: %I.loc16_26.2: %Interface.type.981 = bind_symbolic_name I, 0 [symbolic = %I.loc16_26.2 (constants.%I.d08)]
  421. // CHECK:STDOUT: %I.patt.loc16_26.2: %Interface.type.981 = symbolic_binding_pattern I, 0 [symbolic = %I.patt.loc16_26.2 (constants.%I.patt.1f8)]
  422. // CHECK:STDOUT:
  423. // CHECK:STDOUT: !definition:
  424. // CHECK:STDOUT:
  425. // CHECK:STDOUT: fn(%I.param_patt: %Interface.type.981) -> %i32 {
  426. // CHECK:STDOUT: !entry:
  427. // CHECK:STDOUT: %I.ref: %Interface.type.981 = name_ref I, %I.loc16_26.1 [symbolic = %I.loc16_26.2 (constants.%I.d08)]
  428. // CHECK:STDOUT: %nonesuch.ref: <error> = name_ref nonesuch, <error> [template = <error>]
  429. // CHECK:STDOUT: return <error>
  430. // CHECK:STDOUT: }
  431. // CHECK:STDOUT: }
  432. // CHECK:STDOUT:
  433. // CHECK:STDOUT: specific @Interface(constants.%T) {
  434. // CHECK:STDOUT: %T.loc4_21.2 => constants.%T
  435. // CHECK:STDOUT: %T.patt.loc4_21.2 => constants.%T
  436. // CHECK:STDOUT:
  437. // CHECK:STDOUT: !definition:
  438. // CHECK:STDOUT: %Interface.type => constants.%Interface.type.d32
  439. // CHECK:STDOUT: %Self.2 => constants.%Self
  440. // CHECK:STDOUT: %Interface.assoc_type => constants.%Interface.assoc_type.3bd
  441. // CHECK:STDOUT: %assoc0 => constants.%assoc0.ed7
  442. // CHECK:STDOUT: }
  443. // CHECK:STDOUT:
  444. // CHECK:STDOUT: specific @X(constants.%T, constants.%Self) {
  445. // CHECK:STDOUT: %T => constants.%T
  446. // CHECK:STDOUT: %require_complete => constants.%require_complete.4ae
  447. // CHECK:STDOUT: }
  448. // CHECK:STDOUT:
  449. // CHECK:STDOUT: specific @Interface(%T.loc4_21.2) {}
  450. // CHECK:STDOUT:
  451. // CHECK:STDOUT: specific @AccessMissingGeneric(constants.%T, constants.%I.a5f) {
  452. // CHECK:STDOUT: %T.loc8_25.2 => constants.%T
  453. // CHECK:STDOUT: %T.patt.loc8_25.2 => constants.%T
  454. // CHECK:STDOUT: %Interface.type.loc8_50.2 => constants.%Interface.type.d32
  455. // CHECK:STDOUT: %I.loc8_35.2 => constants.%I.a5f
  456. // CHECK:STDOUT: %I.patt.loc8_35.2 => constants.%I.a5f
  457. // CHECK:STDOUT: }
  458. // CHECK:STDOUT:
  459. // CHECK:STDOUT: specific @Interface(@AccessMissingGeneric.%T.loc8_25.2) {}
  460. // CHECK:STDOUT:
  461. // CHECK:STDOUT: specific @Interface(constants.%i32) {
  462. // CHECK:STDOUT: %T.loc4_21.2 => constants.%i32
  463. // CHECK:STDOUT: %T.patt.loc4_21.2 => constants.%i32
  464. // CHECK:STDOUT:
  465. // CHECK:STDOUT: !definition:
  466. // CHECK:STDOUT: %Interface.type => constants.%Interface.type.981
  467. // CHECK:STDOUT: %Self.2 => constants.%Self
  468. // CHECK:STDOUT: %Interface.assoc_type => constants.%Interface.assoc_type.44d
  469. // CHECK:STDOUT: %assoc0 => constants.%assoc0.4ff
  470. // CHECK:STDOUT: }
  471. // CHECK:STDOUT:
  472. // CHECK:STDOUT: specific @AccessMissingConcrete(constants.%I.d08) {
  473. // CHECK:STDOUT: %I.loc16_26.2 => constants.%I.d08
  474. // CHECK:STDOUT: %I.patt.loc16_26.2 => constants.%I.d08
  475. // CHECK:STDOUT: }
  476. // CHECK:STDOUT: