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

parser: require assign on type alias (#6477)

This commit is contained in:
Daniel Däschle
2020-09-25 12:02:32 +02:00
committed by GitHub
parent 2ea94d621f
commit abc98c273c
27 changed files with 49 additions and 43 deletions

View File

@@ -230,7 +230,7 @@ fn simple_log(txt string) {
* Token Structs
*
******************************************************************************/
pub type FnValidator fn (byte) bool
pub type FnValidator = fn (byte) bool
struct Token{
mut:
ist rune
@@ -293,7 +293,7 @@ mut:
group_stack_index int = -1 // continuous save on capturing groups
}
pub type FnLog fn (string)
pub type FnLog = fn (string)
pub
struct RE {