Better warning messages on quotations of "large" disjunctive pattern matches #7589
Labels
Area-Quotations
Quotations (compiler support or library). See also "queries"
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
With
F# Interactive version 10.6.0.0 for F# 4.7 and
F# Interactive version 10.5.0.0 for F# 4.6
Produces the error:
This also compiles fine to a 23MB release build binary. It seems the
Expr
expansion of a match is not feasible. Each condition is causing a full branch which includes all cases below it. For example consider:Here the
100UL
branch gets counted 4 times, Withthe
2UL
branch now counts to 4 and the100UL
branch is now at 16. This quickly explodes with relatively simple match blocks.The text was updated successfully, but these errors were encountered: