示例工程 12-opaque-existential-types

12-opaque-existential-types/expected/stdout.txt

text · 0.4 KB

[12.1] some 返回 = circle,面积 = 3.142
[12.1] 泛型参数 = 6.283185307179586
[12.1] 另一个不透明类型 = square
[12.2] any 数组 = ["circle", "square"]
[12.2] 总面积 = 7.142
[12.3] any Collection<Int> = 3
[12.3] Set 也满足 = 3
[12.4] MemoryLayout<any Shape> = 40 字节
[12.4] MemoryLayout<Circle> = 8 字节
[12.4] 具体类型 = Circle
[12.4] 存在类型 = Circle