diff --git a/CHANGELOG.md b/CHANGELOG.md index 74e3878..088a56f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 U2 ``` +* Prevent infite loop when a class has a reference to a union type which reference the class itself + + ```ts + export declare class MyClass { + contains(otherBoundsOrLatLng: MyUnion | string): boolean; + } + + export type MyUnion = MyClass | string; + ``` + + ```fs + [] + [] + type MyClass = + abstract member contains: otherBoundsOrLatLng: U2 -> bool + + type MyUnion = + U2 + ``` + ### Added * Add support for `MethodSignature` on interface ([GH-28](https://github.com/glutinum-org/cli/issues/28))