Skip to content

Commit

Permalink
Fix a few 'Pattern discard is not allowed for union case that takes n…
Browse files Browse the repository at this point in the history
…o data' warnings from the .NET 8 compiler (#373)
  • Loading branch information
Numpsy authored Nov 22, 2023
1 parent 51dff04 commit a27383a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia.FuncUI/VirtualDom/VirtualDom.Patcher.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module internal rec Patcher =

match instanceProperty.Setter with
| ValueSome setter -> setter (view, value)
| ValueNone _ -> failwithf "instance property ('%s') has no setter. " instanceProperty.Name
| ValueNone -> failwithf "instance property ('%s') has no setter. " instanceProperty.Name

let private patchContentMultiple (view: AvaloniaObject, accessor: Accessor, delta: ViewDelta list) : unit =
(* often lists only have a get accessor *)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module Simulator =
let canEnterActorCell actor target =
match target with
| Rabbit | Squirrel _ -> actor = Doggo // Dog can eat the squirrel or rabbit
| Doggo _ -> false // Nobody bugs the dog
| Tree _ -> actor = Squirrel true // Only allow if squirrel has an acorn
| Acorn _ -> actor = Squirrel false // Only allow if squirrel w/o acorn
| Doggo -> false // Nobody bugs the dog
| Tree -> actor = Squirrel true // Only allow if squirrel has an acorn
| Acorn -> actor = Squirrel false // Only allow if squirrel w/o acorn

let moveActor state actor pos =
let world = state.World
Expand Down

0 comments on commit a27383a

Please sign in to comment.