Ensure top-level Crystal types are used

This commit is contained in:
Michael Miller 2020-01-04 09:49:28 -07:00
parent c4a97230f1
commit 34060ce181

View file

@ -716,8 +716,8 @@ module Spectator
{% raise "Undefined local variable or method '#{call}'" %}
{% end %}
descriptor = { {{method_name}}: Tuple.new({{call.args.splat}}) }
label = String::Builder.new({{method_name.stringify}})
descriptor = { {{method_name}}: ::Tuple.new({{call.args.splat}}) }
label = ::String::Builder.new({{method_name.stringify}})
{% unless call.args.empty? %}
label << '('
{% for arg, index in call.args %}