mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 22:36:41 +00:00
Basic support for implementing and using a parameterized interface. (#4203)
The main change here is to form a specific when checking an interface function against an impl function, instead of just substituting the `Self` type.
This commit is contained in:
1 parent
b2a13afb73
commit
4a21b6af9b
54 files changed
+998
-266
No files matched your search
@@ -148,3 +148,7 @@ var arr: [i32; 1.(I.F)(2)];
|
||||
// CHECK:STDOUT: %Self => constants.%Self
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: specific @F.1(i32) {
|
||||
// CHECK:STDOUT: %Self => i32
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
+4
@@ -226,3 +226,7 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4);
|
||||
// CHECK:STDOUT: %Self => constants.%Self
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: specific @Op.2(i32) {
|
||||
// CHECK:STDOUT: %Self => i32
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
Reference in new issue
Block a user