hegel icon indicating copy to clipboard operation
hegel copied to clipboard

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

Open k4b7 opened this issue 2 years ago • 0 comments

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);
    }
}

k4b7 avatar Jan 18 '23 02:01 k4b7