remove is_play

This commit is contained in:
Alexander Medvednikov 2019-08-27 04:40:25 +03:00
parent a5b44b3bc5
commit b48b076dac
3 changed files with 12 additions and 32 deletions

View file

@ -1458,11 +1458,6 @@ fn (p mut Parser) name_expr() string {
if ptr || deref {
p.next()
}
if deref {
if p.pref.is_play && !p.builtin_mod {
p.error('dereferencing is temporarily disabled on the playground, will be fixed soon')
}
}
mut name := p.lit
p.fgen(name)
// known_type := p.table.known_type(name)
@ -1840,7 +1835,6 @@ struct $typ.name {
}
if !p.builtin_mod && p.mod != typ.mod {
}
// if p.pref.is_play && field.access_mod ==.private && !p.builtin_mod && p.mod != typ.mod {
// Don't allow `arr.data`
if field.access_mod == .private && !p.builtin_mod && !p.pref.translated && p.mod != typ.mod {
// println('$typ.name :: $field.name ')