diff --git a/content/02-types.md b/content/02-types.md index 790981d6..c4c3fa62 100644 --- a/content/02-types.md +++ b/content/02-types.md @@ -573,6 +573,11 @@ class Path { You may also use [Extensions](types-structure-extensions) to "inherit" fields from other structures: +```haxe +typedef Point3 = Point & { z : Int } +``` + +Or the older syntax: ```haxe typedef Point3 = { > Point, z : Int } ```