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:
@ -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
|
||||
*/
|
||||
}
|
||||
|
Reference in New Issue
Block a user