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

get_type.v

This commit is contained in:
Alexander Medvednikov
2019-12-05 18:47:29 +03:00
parent 0a38b307cd
commit cb46bf314e
4 changed files with 80 additions and 34 deletions

View File

@ -92,3 +92,15 @@ fn test_cmp() {
assert 1 ⩾ 0
}
*/
type myint int
type mystring string
fn test_int_alias() {
/*
i := myint(2)
s := mystring('hi')
ss := s + '!'
assert i + 10 == 12
*/
}