Skip to content

Commit

Permalink
Fix link to Static Types section (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
pettermahlen authored Jun 24, 2021
1 parent 74d51d8 commit d489d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/polymorphism.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ A `type` key is added to the resulting JSON object as a _discriminator_.

<!--- TEST -->

Pay attention to the small, but very important detail in the above example that is related to [Static types][#static-types]:
Pay attention to the small, but very important detail in the above example that is related to [Static types](#static-types):
the `val data` property has a compile-time type of `Project`, even though its run-time type is `OwnedProject`.
When serializing polymorphic class hierarchies you must ensure that the compile-time type of the serialized object
is a polymorphic one, not a concrete one.
Expand Down

0 comments on commit d489d96

Please sign in to comment.