test: empty function definition

This commit is contained in:
rvcas 2022-10-02 15:42:06 -04:00 committed by Lucas
parent 512431d27f
commit 34492f600c
1 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,8 @@ fn module() {
2 |> add_one 2 |> add_one
} }
fn run() {}
"#; "#;
let len = code.chars().count(); let len = code.chars().count();
@ -709,6 +711,20 @@ fn module() {
},), },),
return_type: (), return_type: (),
}, },
ast::UntypedDefinition::Fn {
arguments: vec![],
body: expr::UntypedExpr::Todo {
kind: ast::TodoKind::EmptyFunction,
location: Span::new(SrcId::empty(), 1392..1403),
label: None,
},
doc: None,
location: Span::new(SrcId::empty(), 1392..1403),
name: "run".to_string(),
public: false,
return_annotation: None,
return_type: (),
},
] ]
}, },
); );