Resolve ability member todo

This commit is contained in:
Ayaz Hafiz 2022-11-07 16:58:29 -06:00
parent c76a928ed4
commit b71fef5f3b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -451,8 +451,7 @@ pub fn constrain_expr(
// Save the expectation in the `specialization_var` so we know what to specialize, then
// lookup the member in the environment.
// TODO don't rewrap expectation
let expected = constraints.expectations[expected.index()].clone();
let expected_type = *expected.get_type_ref();
let expected_type = *constraints.expectations[expected.index()].get_type_ref();
let store_expected =
constraints.store(expected_type, specialization_var, file!(), line!());