You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following should result in compile time type errors
do_something[T,U](t: T, u: U) -> T is
let tt: T = u; // should error T is not assignable from U
return u; // should error T is not assignable from U
si
The text was updated successfully, but these errors were encountered:
Bugs fixed:
- Fix issue where null was wrongly treated as assignment compatible with value types (closes Null should not be assignment compatible with value types #1061)
- Fix issue where different generic type arguments were sometimes wrongly treated as assignment compatible with each other (closes#1062)
- Fix issue where null was wrongly treated as assignment compatible with generic type arguments (closes#1063)
Technical:
- Remove workarounds for recently fixed anonymous function argument type inference issue
- Add integration tests asserting generic type arguments are compatible with object
- Make error messages for failed type inference consistent with each other
The following should result in compile time type errors
The text was updated successfully, but these errors were encountered: