Skip to content

Commit 05149ca

Browse files
authored
[All] Fix #4221 Fable.Type union case arg names (#4223)
1 parent 4c2027b commit 05149ca

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Fable.AST/Fable.fs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,16 @@ type Type =
191191
| String
192192
| Regex
193193
| Number of kind: NumberKind * info: NumberInfo
194-
| Option of genArg: Type * isStruct: bool
195-
| Tuple of genArg: Type list * isStruct: bool
196-
| Array of genArg: Type * kind: ArrayKind
197-
| List of genArg: Type
194+
| Option of genericArg: Type * isStruct: bool
195+
| Tuple of genericArg: Type list * isStruct: bool
196+
| Array of genericArg: Type * kind: ArrayKind
197+
| List of genericArg: Type
198198
| LambdaType of argType: Type * returnType: Type
199199
| DelegateType of argTypes: Type list * returnType: Type
200200
| GenericParam of name: string * isMeasure: bool * constraints: Constraint list
201-
| DeclaredType of ref: EntityRef * genArgs: Type list
202-
| AnonymousRecordType of fieldNames: string[] * genArgs: Type list * isStruct: bool
203-
| Nullable of genArg: Type * isStruct: bool
201+
| DeclaredType of ref: EntityRef * genericArgs: Type list
202+
| AnonymousRecordType of fieldNames: string[] * genericArgs: Type list * isStruct: bool
203+
| Nullable of genericArg: Type * isStruct: bool
204204

205205
member this.Generics =
206206
match this with

src/Fable.Cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Fixed
1616

17+
* [All] Fix #4221 Fable.Type union case arg names (by @ncave)
1718
* [All] Erase Nullable Reference Types to inner type (by @ncave)
1819
* [Python] Improve Python (e.g. Pydantic) interop (by @dbrattli)
1920
* [JS/TS] Fix comparers for non-nullable types (by @ncave)

src/Fable.Compiler/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
* [All] Fix #4221 Fable.Type union case arg names (by @ncave)
1213
* [All] Erase Nullable Reference Types to inner type (by @ncave)
1314
* [Python] Improve Python (e.g. Pydantic) interop (by @dbrattli)
1415
* [JS/TS] Fix comparers for non-nullable types (by @ncave)

0 commit comments

Comments
 (0)