type 'type' unexpected
The compiler did not expect the given type to appear here, possibly because it already had a required type.
This error can also be caused by a missing semicolon.