Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few 'Pattern discard is not allowed for union case that takes n… #373

Merged
merged 1 commit into from
Nov 22, 2023
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
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
Loading