test: empty function definition
This commit is contained in:
parent
512431d27f
commit
34492f600c
|
@ -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: (),
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue