Fix missing file name from type errors

This commit is contained in:
Ulf Norell
2019-09-03 15:00:56 +02:00
parent 69a4c1365b
commit 61faa3e2dd
2 changed files with 49 additions and 43 deletions
+1 -1
View File
@@ -2440,7 +2440,7 @@ pp_expr(Label, Expr) ->
pp_type(Label, Type) ->
prettypr:format(prettypr:beside(prettypr:text(Label), aeso_pretty:type(Type, [show_generated]))).
src_file(T) -> aeso_syntax:get_ann(src_file, T, no_file).
src_file(T) -> aeso_syntax:get_ann(file, T, no_file).
line_number(T) -> aeso_syntax:get_ann(line, T, 0).
column_number(T) -> aeso_syntax:get_ann(col, T, 0).