This is mainly meant as a useful test case, but might as well have it be fun too. As an aside, it taught me a surprising result about the %v verb in printf, and we'll have to decide if it's an issue we care about. https://github.com/golang/go/issues/46118 The interesting thing about this method is that it uses the simplepoly API but has no input args-- only the output types are different. If it had identical types in the input args, that might also have been interesting, but it's more rare to have none. Hopefully this exercises our type unification logic.
3 lines
46 B
Plaintext
3 lines
46 B
Plaintext
Vertex: test[float: 42]
|
|
Vertex: test[int: 42]
|