isBasic reports whether under(t) is a basic type with the specified info. If t is a type parameter the result is false; i.e., isBasic does not look inside a type parameter.
(t Type, info BasicInfo)
| 24 | // If t is a type parameter the result is false; i.e., |
| 25 | // isBasic does not look inside a type parameter. |
| 26 | func isBasic(t Type, info BasicInfo) bool { |
| 27 | u, _ := under(t).(*Basic) |
| 28 | return u != nil && u.info&info != 0 |
| 29 | } |
| 30 | |
| 31 | // The allX predicates below report whether t is an X. |
| 32 | // If t is a type parameter the result is true if isX is true |
no test coverage detected