Relax arg checking strictness (#123)

This commit is contained in:
Patrick Stevens
2024-04-16 22:47:06 +01:00
committed by GitHub
parent f7458f521e
commit 232d2ba5ec
3 changed files with 14 additions and 3 deletions

View File

@@ -343,7 +343,18 @@ module internal AstHelper =
}
|> List.singleton
}
| _ -> failwith $"Unrecognised args in interface method declaration: %+A{args}"
| arg ->
{
HasParen = false
Args =
{
Attributes = []
IsOptional = false
Id = None
Type = arg
}
|> List.singleton
}
|> fun ty ->
{ ty with
HasParen = ty.HasParen || hasParen