Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Maximum stack when inferring classes with a method that calls another method #377

Open
kevinbarabash opened this issue Jan 18, 2023 · 0 comments

Comments

@kevinbarabash
Copy link

Playground link: https://hegel.js.org/try#MYGwhgzhAEBiD29oG8BQ0PQEZgE4AowAabAShXUytwFMAXAV1wDtoBZMOgCwDpcxmAE3gBbfOQB80AAw8ArNAD80MNABc2ANyUMAX1Q7sYAF6ESWcmirV6TVtwCWEHjgLEy2qvt1A

class Foo {
    bar(a, b) {
        return Math.random() > 0.5 ? a : b;
    }

    baz(a, b) {
        return this.bar(a, b);
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant