int a(int)
{
return 10;
}
void main() {
auto x = 1.a;
auto a = x.a;
auto b = x. a;
auto y = 1. a;
}
A lexer written according to the language spec will not properly lex the code in this example because the specification states that the longest possible match should be used.
Comment #1 by bearophile_hugs — 2014-04-23T07:50:55Z
Good.
Comment #2 by dlang-bugzilla — 2014-04-25T09:57:19Z