Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fsharp/symbols/SymbolPatterns.fs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ module Symbol =
#endif
let (|Enum|_|) (entity: FSharpEntity) = if entity.IsEnum then Some() else None

let (|Tuple|_|) (ty: FSharpType option) =
ty |> Option.bind (fun ty -> if ty.IsTupleType then Some() else None)
let (|Tuple|_|) (ty: FSharpType) =
if ty.IsTupleType then Some() else None

let (|RefCell|_|) (ty: FSharpType) =
match getAbbreviatedType ty with
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/symbols/SymbolPatterns.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module public Symbol =
val (|ProvidedAndErasedType|_|) : FSharpEntity -> unit option
#endif
val (|Enum|_|) : FSharpEntity -> unit option
val (|Tuple|_|) : FSharpType option -> unit option
val (|Tuple|_|) : FSharpType -> unit option
val (|RefCell|_|) : FSharpType -> unit option
val (|FunctionType|_|) : FSharpType -> unit option
val (|Pattern|_|) : FSharpSymbol -> unit option
Expand Down