|
|
@@ -86,8 +86,12 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %T: type = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %Generic: type = class_type @Generic [template]
|
|
|
-// CHECK:STDOUT: %.1: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %Generic.1: type = generic_class_type @Generic [template]
|
|
|
+// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct.1: Generic = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %Generic.2: type = class_type @Generic [template]
|
|
|
+// CHECK:STDOUT: %struct.2: type = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -96,11 +100,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: .Generic = %Generic.decl.loc4
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %Generic.decl.loc4: type = class_decl @Generic [template = constants.%Generic] {
|
|
|
+// CHECK:STDOUT: %Generic.decl.loc4: Generic = class_decl @Generic [template = constants.%struct.1] {
|
|
|
// CHECK:STDOUT: %T.loc4_15.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc4_15.2: type = bind_symbolic_name T 0, %T.loc4_15.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Generic.decl.loc6: type = class_decl @Generic [template = constants.%Generic] {
|
|
|
+// CHECK:STDOUT: %Generic.decl.loc6: type = class_decl @Generic [template = constants.%struct.2] {
|
|
|
// CHECK:STDOUT: %T.loc6_15.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc6_15.2: type = bind_symbolic_name T 0, %T.loc6_15.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -108,7 +112,7 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @Generic {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%Generic
|
|
|
+// CHECK:STDOUT: .Self = constants.%Generic.2
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_mismatch_param_list.carbon
|
|
|
@@ -116,8 +120,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
// CHECK:STDOUT: %T: type = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %.1: type = class_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %.1: type = generic_class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.2: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct: <invalid> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.3: type = class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.4: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -127,7 +134,7 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
// CHECK:STDOUT: %A.decl: type = class_decl @A [template = constants.%A] {}
|
|
|
-// CHECK:STDOUT: %.decl: type = class_decl @.1 [template = constants.%.1] {
|
|
|
+// CHECK:STDOUT: %.decl: <invalid> = class_decl @.1 [template = constants.%struct] {
|
|
|
// CHECK:STDOUT: %T.loc12_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc12_9.2: type = bind_symbolic_name T 0, %T.loc12_9.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -137,18 +144,23 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @.1 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%.1
|
|
|
+// CHECK:STDOUT: .Self = constants.%.3
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_mismatch_implicit_param_list.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %N.1: i32 = bind_symbolic_name N 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
+// CHECK:STDOUT: %B.1: type = generic_class_type @B [template]
|
|
|
+// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct.1: B = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %B.2: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %T: type = bind_symbolic_name T 0 [symbolic]
|
|
|
// CHECK:STDOUT: %N.2: T = bind_symbolic_name N 1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.1: type = class_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %.2: type = generic_class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %struct.2: <invalid> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.3: type = class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.4: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -157,11 +169,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: .B = %B.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %B.decl: type = class_decl @B [template = constants.%B] {
|
|
|
+// CHECK:STDOUT: %B.decl: B = class_decl @B [template = constants.%struct.1] {
|
|
|
// CHECK:STDOUT: %N.loc4_9.1: i32 = param N
|
|
|
// CHECK:STDOUT: %N.loc4_9.2: i32 = bind_symbolic_name N 0, %N.loc4_9.1 [symbolic = constants.%N.1]
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %.decl: type = class_decl @.1 [template = constants.%.1] {
|
|
|
+// CHECK:STDOUT: %.decl: <invalid> = class_decl @.1 [template = constants.%struct.2] {
|
|
|
// CHECK:STDOUT: %T.loc12_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc12_9.2: type = bind_symbolic_name T 0, %T.loc12_9.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc12_9.2 [symbolic = constants.%T]
|
|
|
@@ -174,17 +186,22 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @.1 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%.1
|
|
|
+// CHECK:STDOUT: .Self = constants.%.3
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_mismatch_param_count.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %T: type = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %C: type = class_type @C [template]
|
|
|
+// CHECK:STDOUT: %C.1: type = generic_class_type @C [template]
|
|
|
+// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct.1: C = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %C.2: type = class_type @C [template]
|
|
|
// CHECK:STDOUT: %U: i32 = bind_symbolic_name U 1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.1: type = class_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %.2: type = generic_class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %struct.2: <invalid> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.3: type = class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.4: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -193,11 +210,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: .C = %C.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {
|
|
|
+// CHECK:STDOUT: %C.decl: C = class_decl @C [template = constants.%struct.1] {
|
|
|
// CHECK:STDOUT: %T.loc4_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc4_9.2: type = bind_symbolic_name T 0, %T.loc4_9.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %.decl: type = class_decl @.1 [template = constants.%.1] {
|
|
|
+// CHECK:STDOUT: %.decl: <invalid> = class_decl @.1 [template = constants.%struct.2] {
|
|
|
// CHECK:STDOUT: %T.loc12_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc12_9.2: type = bind_symbolic_name T 0, %T.loc12_9.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: %U.loc12_19.1: i32 = param U
|
|
|
@@ -209,17 +226,22 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @.1 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%.1
|
|
|
+// CHECK:STDOUT: .Self = constants.%.3
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_mismatch_param_type.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %T.1: type = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %D: type = class_type @D [template]
|
|
|
+// CHECK:STDOUT: %D.1: type = generic_class_type @D [template]
|
|
|
+// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct.1: D = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %D.2: type = class_type @D [template]
|
|
|
// CHECK:STDOUT: %T.2: i32 = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %.1: type = class_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %.2: type = generic_class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %struct.2: <invalid> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.3: type = class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.4: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -228,11 +250,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: .D = %D.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %D.decl: type = class_decl @D [template = constants.%D] {
|
|
|
+// CHECK:STDOUT: %D.decl: D = class_decl @D [template = constants.%struct.1] {
|
|
|
// CHECK:STDOUT: %T.loc4_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc4_9.2: type = bind_symbolic_name T 0, %T.loc4_9.1 [symbolic = constants.%T.1]
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %.decl: type = class_decl @.1 [template = constants.%.1] {
|
|
|
+// CHECK:STDOUT: %.decl: <invalid> = class_decl @.1 [template = constants.%struct.2] {
|
|
|
// CHECK:STDOUT: %T.loc12_9.1: i32 = param T
|
|
|
// CHECK:STDOUT: %T.loc12_9.2: i32 = bind_symbolic_name T 0, %T.loc12_9.1 [symbolic = constants.%T.2]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -242,17 +264,22 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @.1 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%.1
|
|
|
+// CHECK:STDOUT: .Self = constants.%.3
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_mismatch_param_name.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %T: type = bind_symbolic_name T 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %E: type = class_type @E [template]
|
|
|
+// CHECK:STDOUT: %E.1: type = generic_class_type @E [template]
|
|
|
+// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
+// CHECK:STDOUT: %struct.1: E = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %E.2: type = class_type @E [template]
|
|
|
// CHECK:STDOUT: %U: type = bind_symbolic_name U 0 [symbolic]
|
|
|
-// CHECK:STDOUT: %.1: type = class_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: type = struct_type {} [template]
|
|
|
+// CHECK:STDOUT: %.2: type = generic_class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %struct.2: <invalid> = struct_value () [template]
|
|
|
+// CHECK:STDOUT: %.3: type = class_type @.1 [template]
|
|
|
+// CHECK:STDOUT: %.4: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -261,11 +288,11 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT: .E = %E.decl
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
|
|
|
-// CHECK:STDOUT: %E.decl: type = class_decl @E [template = constants.%E] {
|
|
|
+// CHECK:STDOUT: %E.decl: E = class_decl @E [template = constants.%struct.1] {
|
|
|
// CHECK:STDOUT: %T.loc4_9.1: type = param T
|
|
|
// CHECK:STDOUT: %T.loc4_9.2: type = bind_symbolic_name T 0, %T.loc4_9.1 [symbolic = constants.%T]
|
|
|
// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %.decl: type = class_decl @.1 [template = constants.%.1] {
|
|
|
+// CHECK:STDOUT: %.decl: <invalid> = class_decl @.1 [template = constants.%struct.2] {
|
|
|
// CHECK:STDOUT: %U.loc11_9.1: type = param U
|
|
|
// CHECK:STDOUT: %U.loc11_9.2: type = bind_symbolic_name U 0, %U.loc11_9.1 [symbolic = constants.%U]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -275,6 +302,6 @@ class E(U:! type) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @.1 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = constants.%.1
|
|
|
+// CHECK:STDOUT: .Self = constants.%.3
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|