Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/bats/assets/counter_idl/counter_idl.mo
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import A "mo:base/Array";
import Prim "mo:prim";

type List<T> = ?{head : T; tail : List<T>};
type List2<T> = { #nil; #cons: (T, List2<T>) };

actor {
public type List<T> = ?{head : T; tail : List<T>};
public type List2<T> = { #nil; #cons: (T, List2<T>) };

func map(l: List<Int>) : List<Int> = {
switch l {
case null { null };
Expand Down
3 changes: 1 addition & 2 deletions e2e/bats/assets/matrix_multiply/dot_product.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
type Vec = [Int];

actor {
type Vec = [Int];
var vec : Vec = [];

public func init(a: Vec) : async () {
Expand Down
4 changes: 2 additions & 2 deletions e2e/bats/assets/matrix_multiply/matrix.mo
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import A "mo:base/Array";
import M "secret_import";

type Matrix = [[Int]];

actor {
type Matrix = [[Int]];

public func multiply(a: Matrix, b: Matrix) : async Matrix {
assert (a.size() > 0 and b.size() > 0);
assert (a[0].size() == b.size());
Expand Down
4 changes: 2 additions & 2 deletions e2e/bats/assets/matrix_multiply/transpose.mo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import A "mo:base/Array";

type Matrix = [[Int]];

actor {
type Matrix = [[Int]];

public query func transpose(m: Matrix) : async Matrix {
assert (m.size() > 0);
let n_row = m.size();
Expand Down
2 changes: 1 addition & 1 deletion e2e/bats/assets/warning/main.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
func returnsLargeTuple() : (Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat,Nat) = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
func wantsLargeTuple(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) = ();
wantsLargeTuple(returnsLargeTuple());
actor {};

2 changes: 1 addition & 1 deletion nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"motoko": {
"branch": "release",
"repo": "ssh://git@github.com/dfinity-lab/motoko",
"rev": "36478fa99ebad67faff154d051f3f44fe2765bbc",
"rev": "14e76d3aa825bb87c927afdc769e58390cf09b92",
"type": "git"
},
"napalm": {
Expand Down