type-assert
type-assert copied to clipboard
Clean up reference to varray, darray, and HH_FIXME
fixes #58 fixes #61
Fixes:
- Removes unreachable code
UntypedArraySpec. It was private and thearraytype is impossible to spell (both in the typechecker and in the runtime) anyway. - Removes all references to darray, varray, and varray_or_darray
- If a
varrayordarraytype is encountered inTypeSpec\of<T>()or its type structure based friends, they are treated asvecanddictrespectively. - If a
varray_or_darraytype is encountered, an UnsupportedTypeException is thrown.
- If a
- Removes all
HH_FIXME/HH_IGNORE_ERRORdirectives an replaces them withHH\FIXME\UNSAFE_CAST<Ta, Tb>(...)where needed.
The tests don't want to run here...
You can check https://github.com/lexidor/type-assert/pull/1 for the test output.
The push :x: is not meaningful. Something with composer branch aliases.
The pull_request :heavy_check_mark: is the one to look at.