https://issues.dlang.org/show_bug.cgi?id=12623
Issue ID: 12623
Summary: Special lexing case not mentioned in language spec
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: websites
Assignee: [email protected]
Reporter: [email protected]
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.
--