Skip to content

StackOverflowException when compiling large match expression #2039

Description

@nilekirk

Description

Fable compiler errors out with a StackOverflowException when given a large swith expression:

let test i = function
    | 1 -> "1"
    | 2 -> "2"
    //...
    | 800 -> "800"
    | _ -> "other" 

Repro code

REPL

Expected and actual results

The expected result is that Fable should be able to compile the code. The actual outcome is a StackOverFlowException

Related information

  • Fable version: 2.8.3
  • Win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions