-
**Is your feature request related to a problem? Please describe.**
Very often, user-defined contracts start along these lines:
```
let Port = fun label value =>
if builtins.isNum value then
…
-
Hi — I noticed that the docs don't mention the ability to return strings, Failures, etc... from refinement functions to customize error messages. Is this intentional (ie. is this just for internal use…
-
In general when refining types, you must refine using a `=== undefined` vs a `== null` even though the latter is technically a superset of the other.
https://flow.org/try/#0KYDwDg9gTgLgBDAnmYcDiUIF…
-
Sail offers types of the form ```{'tv1 'tv2 ... 'tvn, constraints. t}```. In the refinement type literature those have been given many names (e.g. constrained type, predicate subtype, subtype, subset,…
-
Environment: Checker Framework 1.9.11, Oracle JDK 1.8.0_65, Windows 7/8.1
Example:
``` java
import java.util.Map;
public abstract class KeyForRefinement {
public void working1(Object key) {
…
-
izumi.reflect.Tag subtype relationship is not faithful to compiled ones.
Here is a minimal repro (Scala 2 syntax to allow testing various versions):
```
import izumi.reflect.Tag
trait A {
…
-
I discovered a bug related to structural types and their unstable API representation that causes spurious invalidations. The bug can be observed in scalaz, using [this](https://github.com/gkossakowski…
-
I just discovered exact-typed objects in the docs, but refinement doesn't seem to be working correctly:
```js
type S = {| |};
type L = {|
k: string
|};
declare var x: S | L;
if (x.k =…
-
I'm using opaque alias types described here: https://flow.org/en/docs/types/opaque-types/
I'm also using the undocumented `checks%` hack to define type refinement functions, for example
```js
d…
-
This code throws an error (see https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgDyARgFZgC8YA3qmGAIYBcYAdgK4C2xeATmKgC+YAGQ06YYiwDOGXgEtWAcwGCA3OijtWAYwzy4rMBjyyAFDDxQMLEqQA0YBUoAWNomQCU4+rzwZ2XiM…