Make late binding noops for blocks as return types

The compiler expected that the AST node returned by a method responds to
`late_binding=` and `late_binding?`, but these methods were not
implemented for the AST::BlockType node.
parent 6bea945f
......@@ -18,6 +18,14 @@ module Inkoc
@optional = false
end
def late_binding=(*)
# Late binding does not apply to block types.
end
def late_binding?
false
end
def optional?
@optional
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment