Skip to content

Commit

Permalink
chore: self mutation
Browse files Browse the repository at this point in the history
Signed-off-by: monada-bot[bot] <[email protected]>
  • Loading branch information
monadabot committed Aug 11, 2023
1 parent 83329e8 commit 2e9645a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/wingc/src/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4290,8 +4290,8 @@ impl<'a> TypeChecker<'a> {
}
}
Type::Struct(ref s) => {
let from_json = "fromJson";
let try_from_json = "tryFromJson";
let from_json = "fromJson";
let try_from_json = "tryFromJson";

if property.name == from_json || property.name == try_from_json {
// we need to validate that only structs with all valid json fields can have a fromJson method
Expand Down

0 comments on commit 2e9645a

Please sign in to comment.