mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-08 13:38:39 +00:00
Relax arg checking strictness (#123)
This commit is contained in:
@@ -188,7 +188,7 @@ type internal TypeWithInterfaceMock =
|
|||||||
{
|
{
|
||||||
/// Implementation of IDisposable.Dispose
|
/// Implementation of IDisposable.Dispose
|
||||||
Dispose : unit -> unit
|
Dispose : unit -> unit
|
||||||
Mem1 : int -> string
|
Mem1 : string option -> string[] Async
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An implementation where every method throws.
|
/// An implementation where every method throws.
|
||||||
|
@@ -46,4 +46,4 @@ type Curried<'a> =
|
|||||||
[<GenerateMock>]
|
[<GenerateMock>]
|
||||||
type TypeWithInterface =
|
type TypeWithInterface =
|
||||||
inherit IDisposable
|
inherit IDisposable
|
||||||
abstract Mem1 : int -> string
|
abstract Mem1 : string option -> string[] Async
|
||||||
|
@@ -343,7 +343,18 @@ module internal AstHelper =
|
|||||||
}
|
}
|
||||||
|> List.singleton
|
|> 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 ->
|
|> fun ty ->
|
||||||
{ ty with
|
{ ty with
|
||||||
HasParen = ty.HasParen || hasParen
|
HasParen = ty.HasParen || hasParen
|
||||||
|
Reference in New Issue
Block a user