mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Handle the application of SubscriptExprs directly in constraint application. This is the easy case. Swift SVN r5147
9 lines
163 B
Swift
9 lines
163 B
Swift
// RUN: %swift -parse %s -verify
|
|
|
|
// Simple subscript of arrays:
|
|
func simpleSubscript(array : Float[], x : Int) -> Float {
|
|
var f = array[x]
|
|
return array[x]
|
|
}
|
|
|