Files
swift-mirror/test/Constraints/subscript.swift
Doug Gregor 1ea5b4d801 [Constraint application] Start weaning us from semaSubscriptExpr().
Handle the application of SubscriptExprs directly in constraint
application. This is the easy case.


Swift SVN r5147
2013-05-10 18:25:32 +00:00

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]
}