Type represents a type in the mtail program.
| 15 | |
| 16 | // Type represents a type in the mtail program. |
| 17 | type Type interface { |
| 18 | // Root returns an exemplar Type after unification occurs. If the type |
| 19 | // system is complete after unification, Root will be a TypeOperator. Root |
| 20 | // is the equivalent of Find in the union-find algorithm. |
| 21 | Root() Type |
| 22 | |
| 23 | // String returns a string representation of a Type. |
| 24 | String() string |
| 25 | } |
| 26 | |
| 27 | // TypeError describes an error in which a type was expected, but another was encountered. |
| 28 | type TypeError struct { |
no outgoing calls
no test coverage detected