You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type checks. However, it cannot be used. For example,
h : f zero := zero;
gives the error:
The expression zero has type:
Nat
but is expected to have type:
f zero
Since f cannot be used, it will be filtered out by reachability analysis. But the type signature of f should give a type error, because it's not really supported and translating f to Core is erroneous at this point, because the well-typedness assumptions in the Core pipelines don't support such type synonym definitions.
The text was updated successfully, but these errors were encountered:
lukaszcz
changed the title
Type synonyms with non-type arguments should give an error.
Type synonym definitions with non-type arguments should give an error.
Aug 17, 2023
Currently, the definition
type checks. However, it cannot be used. For example,
gives the error:
Since
f
cannot be used, it will be filtered out by reachability analysis. But the type signature off
should give a type error, because it's not really supported and translatingf
to Core is erroneous at this point, because the well-typedness assumptions in the Core pipelines don't support such type synonym definitions.The text was updated successfully, but these errors were encountered: