Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/crystal/compiler.cr
Original file line number Diff line number Diff line change
@@ -173,7 +173,8 @@ module Crystal
nodes = Expressions.from(nodes)

# Prepend the prelude to the parsed program
nodes = Expressions.new([Require.new(prelude), nodes] of ASTNode)
location = Location.new(program.filename, 1, 1)
nodes = Expressions.new([Require.new(prelude).at(location), nodes] of ASTNode)

# And normalize
program.normalize(nodes)

0 comments on commit 49aa490

Please sign in to comment.