Files
carbon-lang/toolchain/check
Dana Jansensandjosh11b f3a898bac0 Support implicit conversion from a type value to a facet value (#4863)
If a type satisfies the requirements of a FacetType, then that type as a
value can be converted to a FacetValue, which binds the type value to
the FacetType.

For instance, if the class A implements an interface B, then
```
  fn F(b:! B) {}
```
can be called with the type `A`
```
  F(A);
```
This does not handle yet receiving non-type values matching a FacetType,
as that requires deducing the required FacetValue for the caller's
argument. Follow-up work will do this step.

---------

Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>
2025-02-06 18:56:32 +00:00
..
2025-01-23 02:21:48 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-01-23 02:21:48 +00:00
2025-01-23 02:21:48 +00:00
2025-01-23 02:21:48 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-01-23 02:21:48 +00:00
2025-01-22 23:15:00 +00:00