【发布时间】:2020-12-07 23:51:04
【问题描述】:
给定:
# typed: true
module X
class Y
end
end
module X
class X
def y
X::Y
end
end
end
冰糕给出错误:
editor.rb:6: Unable to resolve constant Y https://srb.help/5002
6 | X::Y
为什么即使定义了 X::Y 也会出现错误?
【问题讨论】: