|
|
@@ -1234,10 +1234,7 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FMissingParam.as.J.impl.F.loc117_31.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FMissingParam.as.J.impl.%FMissingParam.as.J.impl.F.decl.loc117_31.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
|
|
|
+// CHECK:STDOUT: %FMissingParam.as.J.impl.F.bound: <bound method> = bound_method %self.param, %F.ref
|
|
|
// CHECK:STDOUT: return <error>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
@@ -1246,10 +1243,7 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FMissingImplicitParam.as.J.impl.F.loc130_26.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FMissingImplicitParam.as.J.impl.%FMissingImplicitParam.as.J.impl.F.decl.loc130_26.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.ref)
|
|
|
+// CHECK:STDOUT: %FMissingImplicitParam.as.J.impl.F.call: init bool = call %F.ref(%b.param)
|
|
|
// CHECK:STDOUT: return %FMissingImplicitParam.as.J.impl.F.call
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
@@ -1258,11 +1252,8 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FMissingReturnType.as.J.impl.F.loc152_30.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FMissingReturnType.as.J.impl.%FMissingReturnType.as.J.impl.F.decl.loc152_30.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
|
|
|
-// CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
|
|
|
+// CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.param, %F.ref
|
|
|
+// CHECK:STDOUT: %FMissingReturnType.as.J.impl.F.call: init %empty_tuple.type = call %FMissingReturnType.as.J.impl.F.bound(%self.param, %b.param)
|
|
|
// CHECK:STDOUT: %.loc152: bool = converted %FMissingReturnType.as.J.impl.F.call, <error> [concrete = <error>]
|
|
|
// CHECK:STDOUT: return <error>
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1272,12 +1263,9 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FDifferentParamType.as.J.impl.F.loc171_38.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FDifferentParamType.as.J.impl.%FDifferentParamType.as.J.impl.F.decl.loc171_38.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
|
|
|
-// CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.ref, <error> [concrete = <error>]
|
|
|
-// CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.ref, <error>)
|
|
|
+// CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.bound: <bound method> = bound_method %self.param, %F.ref
|
|
|
+// CHECK:STDOUT: %.loc103: %FDifferentParamType = converted %b.param, <error> [concrete = <error>]
|
|
|
+// CHECK:STDOUT: %FDifferentParamType.as.J.impl.F.call: init bool = call %FDifferentParamType.as.J.impl.F.bound(%self.param, <error>)
|
|
|
// CHECK:STDOUT: return %FDifferentParamType.as.J.impl.F.call
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
@@ -1286,12 +1274,9 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FDifferentImplicitParamType.as.J.impl.F.loc184_38.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FDifferentImplicitParamType.as.J.impl.%FDifferentImplicitParamType.as.J.impl.F.decl.loc184_38.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
|
|
|
-// CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.ref, <error> [concrete = <error>]
|
|
|
-// CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.ref)
|
|
|
+// CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.bound: <bound method> = bound_method %self.param, %F.ref
|
|
|
+// CHECK:STDOUT: %.loc103: %FDifferentImplicitParamType = converted %self.param, <error> [concrete = <error>]
|
|
|
+// CHECK:STDOUT: %FDifferentImplicitParamType.as.J.impl.F.call: init bool = call %FDifferentImplicitParamType.as.J.impl.F.bound(<error>, %b.param)
|
|
|
// CHECK:STDOUT: return %FDifferentImplicitParamType.as.J.impl.F.call
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
@@ -1300,12 +1285,9 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @FDifferentReturnType.as.J.impl.F.loc200_38.2(%self.param: bool, %b.param: bool) -> out %return.param: bool [thunk @FDifferentReturnType.as.J.impl.%FDifferentReturnType.as.J.impl.F.decl.loc200_38.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %self.ref: bool = name_ref self, %self.param
|
|
|
-// CHECK:STDOUT: %b.ref: bool = name_ref b, %b.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref bool = name_ref <return slot>, %return.param
|
|
|
-// CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.ref, %F.ref
|
|
|
+// CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.bound: <bound method> = bound_method %self.param, %F.ref
|
|
|
// CHECK:STDOUT: %.loc200_38.1: ref %FDifferentReturnType = temporary_storage
|
|
|
-// CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.call: init %FDifferentReturnType to %.loc200_38.1 = call %FDifferentReturnType.as.J.impl.F.bound(%self.ref, %b.ref)
|
|
|
+// CHECK:STDOUT: %FDifferentReturnType.as.J.impl.F.call: init %FDifferentReturnType to %.loc200_38.1 = call %FDifferentReturnType.as.J.impl.F.bound(%self.param, %b.param)
|
|
|
// CHECK:STDOUT: %.loc200_38.2: bool = converted %FDifferentReturnType.as.J.impl.F.call, <error> [concrete = <error>]
|
|
|
// CHECK:STDOUT: return <error>
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1330,11 +1312,9 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @SelfNestedBadParam.as.SelfNested.impl.F.loc223_87.2(%x.param: %tuple.type.7ea) -> out %return.param: %array_type.388 [thunk @SelfNestedBadParam.as.SelfNested.impl.%SelfNestedBadParam.as.SelfNested.impl.F.decl.loc223_87.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %x.ref: %tuple.type.7ea = name_ref x, %x.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref %array_type.388 = name_ref <return slot>, %return.param
|
|
|
// CHECK:STDOUT: %.loc211_57: ref %array_type.388 = splice_block %return.param {}
|
|
|
-// CHECK:STDOUT: %tuple.elem0: %ptr.cf2 = tuple_access %x.ref, element0
|
|
|
-// CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.62a = tuple_access %x.ref, element1
|
|
|
+// CHECK:STDOUT: %tuple.elem0: %ptr.cf2 = tuple_access %x.param, element0
|
|
|
+// CHECK:STDOUT: %tuple.elem1: %struct_type.x.y.62a = tuple_access %x.param, element1
|
|
|
// CHECK:STDOUT: %.loc211_9.1: %SelfNestedBadParam = struct_access %tuple.elem1, element0
|
|
|
// CHECK:STDOUT: %.loc211_9.2: %i32 = converted %.loc211_9.1, <error> [concrete = <error>]
|
|
|
// CHECK:STDOUT: %SelfNestedBadParam.as.SelfNested.impl.F.call: init %array_type.388 to %.loc211_57 = call %F.ref(<error>)
|
|
|
@@ -1346,10 +1326,8 @@ class SelfNestedBadReturnType {
|
|
|
// CHECK:STDOUT: fn @SelfNestedBadReturnType.as.SelfNested.impl.F.loc239_112.2(%x.param: %tuple.type.064) -> out %return.param: %array_type.31b [thunk @SelfNestedBadReturnType.as.SelfNested.impl.%SelfNestedBadReturnType.as.SelfNested.impl.F.decl.loc239_112.1] {
|
|
|
// CHECK:STDOUT: !entry:
|
|
|
// 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]
|
|
|
-// CHECK:STDOUT: %x.ref: %tuple.type.064 = name_ref x, %x.param
|
|
|
-// CHECK:STDOUT: %return.ref: ref %array_type.31b = name_ref <return slot>, %return.param
|
|
|
// CHECK:STDOUT: %.loc239_112.1: ref %array_type.388 = temporary_storage
|
|
|
-// CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.388 to %.loc239_112.1 = call %F.ref(%x.ref)
|
|
|
+// CHECK:STDOUT: %SelfNestedBadReturnType.as.SelfNested.impl.F.call: init %array_type.388 to %.loc239_112.1 = call %F.ref(%x.param)
|
|
|
// CHECK:STDOUT: %.loc239_112.2: %array_type.31b = converted %SelfNestedBadReturnType.as.SelfNested.impl.F.call, <error> [concrete = <error>]
|
|
|
// CHECK:STDOUT: return <error> to %return.param
|
|
|
// CHECK:STDOUT: }
|