diff options
author | metagn <metagngn@gmail.com> | 2022-09-06 00:38:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 23:38:38 +0200 |
commit | 5ebd1248dfe517fd932c401f71d1e5aeb023b0e4 (patch) | |
tree | 0413fef17dd80f5b888caae12d4aa69832408827 /doc | |
parent | 8dcf367e5223ae26b57c9bbfaec6e70ac14bb820 (diff) | |
download | Nim-5ebd1248dfe517fd932c401f71d1e5aeb023b0e4.tar.gz |
overloadable enums no longer experimental (#20298)
depends on #20126
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual_experimental.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual_experimental.md b/doc/manual_experimental.md index 0e4b317fb..ac7c37ccb 100644 --- a/doc/manual_experimental.md +++ b/doc/manual_experimental.md @@ -89,8 +89,6 @@ No Unicode normalization step is performed. Overloadable enum value names ============================= -Enabled via `{.experimental: "overloadableEnums".}`. - Enum value names are overloadable, much like routines. If both of the enums `T` and `U` have a member named `foo`, then the identifier `foo` corresponds to a choice between `T.foo` and `U.foo`. During overload resolution, @@ -98,7 +96,6 @@ the correct type of `foo` is decided from the context. If the type of `foo` is ambiguous, a static error will be produced. ```nim test = "nim c $1" - {.experimental: "overloadableEnums".} type E1 = enum @@ -124,6 +121,9 @@ ambiguous, a static error will be produced. p value2 ``` +Previously required `{.experimental: "overloadableEnums".}` to enable, +now always enabled. + Top-down type inference ======================= |