Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是说:
class Foo; end class Bar < Foo; end class Cux < Foo; end
是否可以将变量的类型限制为从Foo没有联合的类继承,例如x : Foo+?
Foo
x : Foo+
也许使用类型限制?
@x : Foo