Skip to content

Commit

Permalink
If the main component is a function, we report an errorm and then we …
Browse files Browse the repository at this point in the history
…do not check if it has tags.
  • Loading branch information
miguelis committed Apr 20, 2024
1 parent e8e125e commit d12e98c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions type_analysis/src/analyzers/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ pub fn type_check(program_archive: &ProgramArchive) -> Result<OutInfo, ReportCol
initial_expression.get_meta(),
&mut analysis_information.reports,
);
}

if check_main_has_tags(initial_expression, program_archive) {
} else if check_main_has_tags(initial_expression, program_archive) {
add_report(
ReportCode::MainComponentWithTags,
initial_expression.get_meta(),
Expand Down

0 comments on commit d12e98c

Please sign in to comment.