TP0006
Error: invalid f-string
Example
Section titled “Example”From the golden case tests/cases/m1/tp0006_fstring.tpn:
let a = f"a}b"let b = f"{ }"let c = f"{f"x"}"The compiler reports:
tp0006_fstring.tpn:1:12: error TP0006: single '}' is not allowed in an f-stringtp0006_fstring.tpn:2:11: error TP0006: empty f-string holetp0006_fstring.tpn:3:12: error TP0006: f-strings cannot be nestedThe specification lists every code.
© 2026 Discover Edge, LLC · Taipan is released under the MIT License.