Please sign in to comment.
natives/runtime: Update TypeAssertionError instantiation.
In the relevant upstream change is golang/go@cda1947, fields of TypeAssertionError are changed from string to *_type. This change follows suit and updates the instantiation of the TypeAssertionError type in $assertType of compiler/prelude to use the new definition. This happens when a type assertion fails. Add test coverage for the runtime error string, since it wasn't covered before. Fixes fixedbugs/issue16130.go and fixedbugs/issue26094.go tests.
- Loading branch information...
Showing with 30 additions and 2 deletions.