Commits

Chris Lattner committed 0b33741f031
Add a testcase for rdar://21362748 [WWDC Lab] QoI: cannot subscript a value of type '[Int]?' with an index of type 'Int' We used to produce: test.swift:6:20: error: cannot subscript a value of type '[Int]?' with an index of type 'Int' return foo.array[0] ^ with the recent subscript improvements we now produce: error: result type 'Element' does not match expected type which still isn't a great diagnosis, but at least is the correct problem. Swift SVN r29867