Swift 1.2b1: Parser/lexer doesn’t recognize scope resolution operator immediately following C-style comment

Originator:rix.rob
Number:rdar://19912666 Date Originated:20-Feb-2015 09:55 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-Beta (6D520o)
Classification:Other Bug Reproducible:Always
 
Summary:
See below.


Steps to Reproduce:
1. Compile this:
enum E {
	case C
}

func f() -> E {
	return /**/.C
}


Expected Results:
I expected it to compile.


Actual Results:
./boom.swift:8:13: error: expected expression in 'return' statement
        return /**/.C
                   ^


Regression:
Whitespace between the trailing / and the . make it compile.


Notes:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!