Skip to content

Commit

Permalink
test: parse a class
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jun 9, 2024
1 parent 05e48ac commit d4091bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/src/test/java/org/aya/syntax/concrete/SyntaxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def bar (A : Type 0) : A -> A => fn x => {? x ?}
let open Nat in
let n := a + b in n
tighter + looser +
open class Cat
| A : Type
open class Monoid
| A : Type
| infixl + : Fn (a b : A) -> A
""");
for (var stmt : res) {
assertNotNull(stmt.toDoc(AyaPrettierOptions.debug()).debugRender());
Expand Down

0 comments on commit d4091bb

Please sign in to comment.