add comment to the code block

This commit is contained in:
z78078 2022-07-08 17:11:50 +08:00
parent 90d7243bf5
commit 74d39be59c
1 changed files with 1 additions and 0 deletions

View File

@ -402,6 +402,7 @@ impl Nac3 {
}
})
{
// This part check if __init__ method decorate with inappropriate decorator (rpc)
if name == &"__init__".into() {
return Err(CompileError::new_err(format!(
"compilation failed\n----------\nConstructor __init__ function should not decorated with rpc decorator (at {})",