Skip to content

Commit a5a1e73

Browse files
T-GroCopilot
andcommitted
Add type annotation to fix FS0072 in bootstrap build
The bootstrap compiler needs an explicit type annotation on the 'g' parameter in GenAttribArg to resolve g.ilg.typ_Object, since g's type is not constrained until later match cases (TypeOfExpr, EnumExpr, etc.). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dcaa43f commit a5a1e73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Compiler/CodeGen/IlxGen.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10183,7 +10183,7 @@ and EmitRestoreStack cgbuf (savedStack, savedStackLocals) =
1018310183
//GenAttr: custom attribute generation
1018410184
//-------------------------------------------------------------------------
1018510185

10186-
and GenAttribArg amap g eenv x (ilArgTy: ILType) =
10186+
and GenAttribArg amap (g: TcGlobals) eenv x (ilArgTy: ILType) =
1018710187

1018810188
match stripDebugPoints x, ilArgTy with
1018910189
// Detect 'null' used for an array argument

0 commit comments

Comments
 (0)