mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
183 B
V
13 lines
183 B
V
interface IExample {}
|
|
|
|
fn thing(a IExample) bool {
|
|
return true
|
|
}
|
|
|
|
fn test_as_cast_with_literals() {
|
|
assert thing(true)
|
|
assert thing(123)
|
|
assert thing(12.3)
|
|
assert thing('abc')
|
|
}
|