Fix codegen test results.

This commit is contained in:
Stephen Chung
2021-02-26 20:14:23 +08:00
parent 33fa57d95b
commit f3b5df09af
6 changed files with 6 additions and 6 deletions

View File

@@ -537,7 +537,7 @@ impl ExportedFn {
// 2a. Property getters must take only the subject as an argument.
FnSpecialAccess::Property(Property::Get(_)) if self.arg_count() != 1 => {
return Err(syn::Error::new(
self.signature.span(),
self.signature.inputs.span(),
"property getter requires exactly 1 parameter",
))
}