1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: require assign on type alias (#6477)

This commit is contained in:
Daniel Däschle
2020-09-25 12:02:32 +02:00
committed by GitHub
parent 2ea94d621f
commit abc98c273c
27 changed files with 49 additions and 43 deletions

View File

@@ -91,7 +91,7 @@ fn test_cmp() {
assert 1 ⩾ 0
}
*/
type MyInt int
type MyInt = int
fn test_int_alias() {
i := MyInt(2)
@@ -168,7 +168,7 @@ fn test_num_separator() {
// f32 or f64
assert 312_2.55 == 3122.55
assert 312_2.55 == 3122.55
}
fn test_int_decl() {