Skip to content

Commit

Permalink
push temporary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Sep 7, 2024
1 parent e9a6009 commit 021f77a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Compilation/positive/test082.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module test082;

trait
type Suc (a : Type) := mkSuc a;

trait
type Zero := mkZero;

trait
type Add (a : Type) (b : Type) := mkAdd a b;

instance
addZeroI {B} {b : B} : Add Zero B := mkAdd mkZero b;

instance
addSucI {B} {b : B} {{Add Zero B}} : Add (Suc Zero) B := mkAdd (mkSuc mkZero) b;
23 changes: 23 additions & 0 deletions tests/Compilation/positive/test083.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module test083;

trait
type Suc (a : Type) := mkSuc a;

trait
type Zero := mkZero;

trait
type Add (a : Type) (b : Type) := mkAdd a b;

trait
type Add' (a : Type) (b : Type) := mkAdd' a b;


instance
addZeroI {B} {b : B} : Add Zero B := mkAdd mkZero b;

instance
addSucI' {B} {b : B} {{Add' (Suc Zero) B}} : Add (Suc Zero) B := mkAdd (mkSuc mkZero) b;

instance
addSucI {B} {b : B} {{Add Zero B}} : Add (Suc Zero) B := mkAdd (mkSuc mkZero) b;

0 comments on commit 021f77a

Please sign in to comment.