mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix attributes on public structs & enums
This commit is contained in:
33
vlib/compiler/tests/attribute_test.v
Normal file
33
vlib/compiler/tests/attribute_test.v
Normal file
@ -0,0 +1,33 @@
|
||||
[testing]
|
||||
struct StructAttrTest {
|
||||
foo string
|
||||
bar int
|
||||
}
|
||||
|
||||
[testing]
|
||||
pub struct PubStructAttrTest {
|
||||
foo string
|
||||
bar int
|
||||
}
|
||||
|
||||
[testing]
|
||||
enum EnumAttrTest {
|
||||
one
|
||||
two
|
||||
}
|
||||
|
||||
[testing]
|
||||
pub enum PubEnumAttrTest {
|
||||
one
|
||||
two
|
||||
}
|
||||
|
||||
[testing]
|
||||
fn test_fn_attribte() {
|
||||
assert true
|
||||
}
|
||||
|
||||
[testing]
|
||||
pub fn test_pub_fn_attribte() {
|
||||
assert true
|
||||
}
|
Reference in New Issue
Block a user