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

checker: add check for using a private const in another module (#8501)

This commit is contained in:
zakuro
2021-02-03 17:17:13 +09:00
committed by GitHub
parent 3ef4885094
commit e30e794884
9 changed files with 34 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ const (
)
// TODO: remove these and uae the enum everywhere
const (
align_left = HorizontalAlign.left
pub const (
align_left = HorizontalAlign.left
align_right = HorizontalAlign.right
)
@@ -28,9 +28,9 @@ pub enum VerticalAlign {
pub struct TextCfg {
pub:
color Color = black
size int = 16
size int = 16
align HorizontalAlign = .left
vertical_align VerticalAlign = .top
vertical_align VerticalAlign = .top
max_width int
family string
bold bool