TP0213
Error: nested optional
Messages
Section titled “Messages”optional types cannot be nested
Example
Section titled “Example”From the golden case tests/cases/m18/tp0213_alias.tpn:
# Optionals flatten through an alias; only a literal 'T??' is nested (SPEC §3.12).type MaybeInt = int?let fine: MaybeInt? = Nonetype Bad = int??The compiler reports:
tp0213_alias.tpn:4:12: error TP0213: optional types cannot be nestedThe specification lists every code.
© 2026 Discover Edge, LLC · Taipan is released under the MIT License.