Skip to content

Commit

Permalink
add a workaround for super weird behaviour, reported the bug as #6258
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Apr 20, 2023
1 parent bc014b0 commit 23c7778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import project.Nothing.Nothing
> Example
Dropping into a debugging REPL during execution.

Debug.breakpoint
Standard.Base.Runtime.Debug.breakpoint
breakpoint : Nothing
breakpoint = @Builtin_Method "Debug.breakpoint"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ type Value_Type
Specifies if values of the given type can be compared for ordering.
are_comparable : Value_Type -> Value_Type -> Boolean
are_comparable type_1 type_2 =
find_bucket typ =
find_bucket typ = typ.if_not_error <|
buckets = [["Integer", "Float", "Decimal"], ["Char"], ["Date"], ["Date_Time"], ["Time"], ["Mixed"]]
ctor_name = Meta.meta typ . constructor . name
## TODO [RW] workaround for the bug #6258:
cleared_typ = Warning.clear typ
ctor_name = Meta.meta cleared_typ . constructor . name
buckets.index_of bucket->
bucket.contains ctor_name

Expand Down

0 comments on commit 23c7778

Please sign in to comment.