What is the return type of "type" in solidity?


In solidity, you can call the `type` function [to get information about a type](https://docs.soliditylang.org/en/v0.8.17/units-and-global-variables.html?highlight=type#type-information). But what is the return type of the `type` function? ```javascript // SPDX-License-Identifier: MIT pragma solidity 0.8.7; contract TypeTest { function whatType() public returns(?????){ return type(uint16); } } ```

Answers 1

According to the [solidity docs](https://docs.soliditylang.org/en/v0.8.17/units-and-global-variables.html?highlight=type#type-information) you can't just return `type(uint)` it has to have `type(uint256).max` or min or something.