-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
110 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
actor [ func(n:Nat) : Int {n} ] // reject - expect function on records | ||
{ | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Prim "mo:prim"; | ||
|
||
actor [ func({unstable1 : () -> () }) : | ||
{ unstable2 : () -> (); // not stable | ||
var three : Text; // wrong type, reject | ||
var versoin : (); // unrequired/mispelled, reject | ||
} | ||
{ { var three = ""; | ||
var unused = (); | ||
var versoin = (); | ||
unstable2 = func () {}; | ||
} | ||
}] { | ||
|
||
stable var version = 0; | ||
|
||
stable var three : [var (Nat, Text)] = [var]; | ||
|
||
public func check(): async() { | ||
Prim.debugPrint (debug_show {three}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
migration-more.mo:1.9-1.30: type error [M0093], expected object type, but migration expression produces non-object type | ||
Int | ||
migration-more.mo:1.9-1.30: type error [M0093], expected object type, but migration expression consumes non-object type | ||
Nat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Return code 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
migration.mo:3.9-13.9: type error [M0131], expected stable type, but migration expression produces non-stable type | ||
{var three : Text; unstable2 : () -> (); var versoin : ()} | ||
migration.mo:3.9-13.9: type error [M0131], expected stable type, but migration expression consumes non-stable type | ||
{unstable1 : () -> ()} | ||
migration.mo:17.15-17.20: type error [M0096], migration expression produces field `three` of type | ||
var Text | ||
, not the expected type | ||
[var (Nat, Text)] | ||
migration.mo:3.9-13.9: type error [M0096], migration expression produces unexpected field `unstable2` of type | ||
() -> () | ||
|
||
migration.mo:3.9-13.9: type error [M0096], migration expression produces unexpected field `versoin` of type | ||
var () | ||
|
||
Did you mean field version? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Return code 1 |