Closed dannypsnl closed 4 months ago
@imkiva
Parsing isContr A → (x y : A) → isContr (x = y)
would throw
java.lang.IndexOutOfBoundsException: Index: 1
at kala.collection.SeqLike.get(SeqLike.java:96)
at org.aya.cli.parse.AyaProducer.expr(AyaProducer.java:557)
at org.aya.cli.parse.AyaProducer.typeOrNull(AyaProducer.java:849)
at org.aya.cli.parse.AyaProducer.fnDecl(AyaProducer.java:307)
at org.aya.cli.parse.AyaProducer.decl(AyaProducer.java:227)
at org.aya.cli.parse.AyaProducer.stmt(AyaProducer.java:102)
Maybe need to be isContr A → Fn (x y : A) → isContr (x = y)
? The error has to be handled though.
@imkiva help 😭 Idk how to fix this in a good way
With source code below
and
aya.json
Then the
java -jar cli-fatjar.jar --make .
reportsIndexOutOfBoundsException
The fun part is if remove definition of
is-prop-is-contr
then Aya won't crash like this.