1
0
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:
joe-conigliaro
2020-01-30 11:27:13 +11:00
committed by GitHub
parent 6c5879add9
commit 80d936adc1
2 changed files with 38 additions and 3 deletions

View 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
}