Skip to content

Commit

Permalink
Revert partially #10682 (#10993)
Browse files Browse the repository at this point in the history
  • Loading branch information
beta-ziliani authored Jul 24, 2021
1 parent 1db5d45 commit c79cfdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/compiler/codegen/macro_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ describe "Code gen: macro" do
end
Foo.new.bar
)).to_string.should eq("top_level")
)).to_string.should eq("main")
end

it "responds correctly to has_constant? with @top_level" do
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/crystal/program.cr
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module Crystal
property compiler : Compiler?

def initialize
super(self, self, "top_level")
super(self, self, "main")

# Every crystal program comes with some predefined types that we initialize here,
# like Object, Value, Reference, etc.
Expand Down

0 comments on commit c79cfdc

Please sign in to comment.