TP0223
Error: nested function with type parameters
Messages
Section titled “Messages”nested functions cannot have type parameters
Example
Section titled “Example”From the golden case tests/cases/m11/tp0223_nested.tpn:
def outer() -> int: def inner[T](x: T) -> T: return x return 1The compiler reports:
tp0223_nested.tpn:2:15: error TP0223: nested functions cannot have type parametersThe specification lists every code.
© 2026 Discover Edge, LLC · Taipan is released under the MIT License.